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