* sasl.texi: Texinfo markup fixes. From Jesper Harder
[elisp/flim.git] / Makefile
1 #
2 # Makefile for FLIM.
3 #
4
5 PACKAGE = flim
6 API     = 1.14
7 RELEASE = 6
8
9 TAR     = tar
10 RM      = /bin/rm -f
11 CP      = /bin/cp -p
12
13 EMACS   = emacs
14 XEMACS  = xemacs
15 FLAGS   = -batch -q -no-site-file -l FLIM-MK
16
17 PREFIX = NONE
18 LISPDIR = NONE
19 PACKAGEDIR = NONE
20 VERSION_SPECIFIC_LISPDIR = NONE
21
22 GOMI    = *.elc \
23           *.cp *.cps *.ky *.kys *.fn *.fns *.vr *.vrs \
24           *.pg *.pgs *.tp *.tps *.toc *.aux *.log
25 FILES   = README.?? Makefile FLIM-MK FLIM-CFG FLIM-ELS *.el ChangeLog
26
27 VERSION = $(API).$(RELEASE)
28 ARC_DIR_PREFIX = /home/kanji/tomo/public_html/lemi/dist
29 ARC_DIR = $(ARC_DIR_PREFIX)/flim/flim-$(API)
30 SEMI_ARC_DIR = $(ARC_DIR_PREFIX)/semi/semi-1.14-for-flim-$(API)
31
32 CVS_HOST = cvs.m17n.org
33
34 elc:
35         $(EMACS) $(FLAGS) -f compile-flim $(PREFIX) $(LISPDIR) \
36                 $(VERSION_SPECIFIC_LISPDIR)
37
38 check:
39         $(EMACS) $(FLAGS) -f check-flim $(PREFIX) $(LISPDIR) \
40                 $(VERSION_SPECIFIC_LISPDIR)
41
42 install:        elc
43         $(EMACS) $(FLAGS) -f install-flim $(PREFIX) $(LISPDIR) \
44                 $(VERSION_SPECIFIC_LISPDIR)
45
46
47 package:
48         $(XEMACS) $(FLAGS) -f compile-flim-package $(PACKAGEDIR)
49
50 install-package:        package
51         $(XEMACS) $(FLAGS) -f install-flim-package $(PACKAGEDIR)
52
53 clean:
54         -$(RM) $(GOMI)
55
56
57 tar:
58         cvs commit
59         sh -c 'cvs tag -R $(PACKAGE)-`echo $(VERSION) | tr . _`; \
60         cd /tmp; \
61         cvs -d :pserver:anonymous@$(CVS_HOST):/cvs/root \
62                 export -d $(PACKAGE)-$(VERSION) \
63                 -r $(PACKAGE)-`echo $(VERSION) | tr . _` \
64                 flim'
65         cd /tmp; $(RM) $(PACKAGE)-$(VERSION)/ftp.in ; \
66                 $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
67         cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)
68         sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" \
69                 | sed "s/PACKAGE/$(PACKAGE)/" > ftp
70
71 release:
72         -$(RM) $(ARC_DIR)/$(PACKAGE)-$(VERSION).tar.gz
73         mv /tmp/$(PACKAGE)-$(VERSION).tar.gz $(ARC_DIR)
74         cd $(SEMI_ARC_DIR) ; \
75                 ln -s ../../flim/flim-$(API)/$(PACKAGE)-$(VERSION).tar.gz .