forked from wanderlust/semi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (51 loc) · 1.46 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# Makefile for SEMI kernel.
#
PACKAGE = semi
API = 1.14
RELEASE = 6
FLIM_API= 1.14
TAR = tar
RM = /bin/rm -f
CP = /bin/cp -p
EMACS = emacs
XEMACS = xemacs
FLAGS = -batch -q -no-site-file -l SEMI-MK
PREFIX = NONE
LISPDIR = NONE
PACKAGEDIR = NONE
VERSION_SPECIFIC_LISPDIR = NONE
GOMI = *.elc
VERSION = $(API).$(RELEASE)
ARC_DIR_PREFIX = /home/kanji/tomo/public_html/comp/emacsen/lisp
ARC_DIR = $(ARC_DIR_PREFIX)/semi/semi-$(API)-for-flim-$(FLIM_API)
elc:
$(EMACS) $(FLAGS) -f compile-semi \
$(PREFIX) $(LISPDIR) $(VERSION_SPECIFIC_LISPDIR)
install-elc: elc
$(EMACS) $(FLAGS) -f install-semi \
$(PREFIX) $(LISPDIR) $(VERSION_SPECIFIC_LISPDIR)
install: install-elc
package:
$(XEMACS) $(FLAGS) -f compile-semi-package $(PACKAGEDIR)
install-package: package
$(XEMACS) $(FLAGS) -f install-semi-package $(PACKAGEDIR)
clean:
-$(RM) $(GOMI)
tar:
cvs commit
sh -c 'cvs tag -R $(PACKAGE)-`echo $(VERSION) | tr . _`; \
cd /tmp; \
cvs -d :pserver:[email protected]:/cvs/root \
export -d $(PACKAGE)-$(VERSION) \
-r $(PACKAGE)-`echo $(VERSION) | tr . _` \
semi'
$(RM) /tmp/$(PACKAGE)-$(VERSION)/ftp.in
cd /tmp; $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)
sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" \
| sed "s/PACKAGE/$(PACKAGE)/" \
| sed "s/FLIM_API/$(FLIM_API)/" > ftp
release:
-$(RM) $(ARC_DIR)/$(PACKAGE)-$(VERSION).tar.gz
mv /tmp/$(PACKAGE)-$(VERSION).tar.gz $(ARC_DIR)