Initial Commit
[packages] / xemacs-packages / haskell-mode / Makefile.upstream
1 EMACS = emacs
2
3 ELFILES = \
4         haskell-font-lock.el \
5         haskell-mode.el \
6         haskell-doc.el \
7         haskell-decl-scan.el \
8         inf-haskell.el \
9         haskell-indent.el
10
11 ELCFILES = $(ELFILES:.el=.elc)
12 # AUTOLOADS = $(PACKAGE)-startup.el
13 AUTOLOADS = haskell-site-file.el
14
15 %.elc: %.el
16         $(EMACS) --batch --eval '(setq load-path (cons "." load-path))' \
17                 -f batch-byte-compile $<
18
19 all: $(ELCFILES) $(AUTOLOADS)
20
21 info:
22         # No Texinfo file, sorry.
23
24 ######################################################################
25 ###                    don't look below                            ###
26 ######################################################################
27
28 PACKAGE=haskell-mode
29
30 $(AUTOLOADS): $(ELFILES)
31         [ -f $@ ] || echo '\f' >$@
32         $(EMACS) --batch --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "."
33
34 ##
35
36 TAG = $(shell echo v$(VERSION) | tr '.' '_')
37 ftpdir=/u/monnier/html/elisp/
38 cvsmodule=$(shell cat CVS/Repository)
39 cvsroot=$(shell cat CVS/Root)
40
41 dist:
42         cvs tag -F $(TAG) &&\
43         cd $(TMP) &&\
44         unset CVSREAD; cvs -d $(cvsroot) export -r $(TAG) -d $(PACKAGE)-$(VERSION) $(cvsmodule) &&\
45         cd $(PACKAGE)-$(VERSION) &&\
46         make info $(AUTOLOADS) &&\
47         cd .. &&\
48         ztar $(PACKAGE)-$(VERSION) &&\
49         rm -rf $(PACKAGE)-$(VERSION)
50         mv $(TMP)/$(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/
51         ln -sf $(PACKAGE)-$(VERSION).tar.gz $(ftpdir)/$(PACKAGE).tar.gz
52
53 # arch-tag: 1ab314c8-3821-44fb-b533-dd58f5d75ba4