(eword-decode-string, eword-decode-region): Mention language info in doc string.
[elisp/flim.git] / Makefile
1 #
2 # Makefile for FLIM.
3 #
4
5 PACKAGE = flim
6 API     = 1.14
7 RELEASE = 9
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
35 elc:
36         $(EMACS) $(FLAGS) -f compile-flim $(PREFIX) $(LISPDIR) \
37                 $(VERSION_SPECIFIC_LISPDIR)
38
39 check:
40         $(EMACS) $(FLAGS) -f check-flim $(PREFIX) $(LISPDIR) \
41                 $(VERSION_SPECIFIC_LISPDIR)
42
43 install:        elc
44         $(EMACS) $(FLAGS) -f install-flim $(PREFIX) $(LISPDIR) \
45                 $(VERSION_SPECIFIC_LISPDIR)
46
47
48 package:
49         $(XEMACS) $(FLAGS) -f compile-flim-package $(PACKAGEDIR)
50
51 install-package:        package
52         $(XEMACS) $(FLAGS) -f install-flim-package $(PACKAGEDIR)
53
54 clean:
55         -$(RM) $(GOMI)
56
57
58 tar:
59         cvs commit
60         sh -c 'cvs tag -R $(PACKAGE)-`echo $(VERSION) | tr . _`; \
61         cd /tmp; \
62         cvs -d :pserver:anonymous@$(CVS_HOST):/cvs/root \
63                 export -d $(PACKAGE)-$(VERSION) \
64                 -r $(PACKAGE)-`echo $(VERSION) | tr . _` \
65                 flim'
66         cd /tmp; $(RM) $(PACKAGE)-$(VERSION)/ftp.in ; \
67                 $(TAR) cvzf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
68         cd /tmp; $(RM) -r $(PACKAGE)-$(VERSION)
69         sed "s/VERSION/$(VERSION)/" < ftp.in | sed "s/API/$(API)/" \
70                 | sed "s/PACKAGE/$(PACKAGE)/" > ftp
71
72 release:
73         -$(RM) $(ARC_DIR)/$(PACKAGE)-$(VERSION).tar.gz
74         mv /tmp/$(PACKAGE)-$(VERSION).tar.gz $(ARC_DIR)
75         cd $(SEMI_ARC_DIR) ; \
76                 ln -s ../../flim/flim-$(API)/$(PACKAGE)-$(VERSION).tar.gz .