Remove non-free old and crusty clearcase pkg
[packages] / mule-packages / edict / Makefile.GNU
1 # Makefile.FSF
2
3 # This file is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by the
5 # Free Software Foundation; either version 2, or (at your option) any
6 # later version.
7
8 # It is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11 # for more details.
12
13 # You should have received a copy of the GNU General Public License
14 # along with it; see the file COPYING.  If not, write to
15 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 # Boston, MA 02111-1307, USA.
17
18 # Makefile to bytecompile edict.el sources under FSF Emacs and build a
19 # tarball that can be untarred somewhere on the load-path.
20
21 # The recommended location is .../emacs/site-lisp/edict, and the
22 # default location for the dictionary is there also.
23
24 AUTHOR_VERSION = 0.9.8
25 MAINTAINER = Stephen J. Turnbull <turnbull@sk.tsukuba.ac.jp>
26
27 # edict-autoloads.el is automatically generated using XEmacs.  It is
28 # therefore not guaranteed to be 100% up-to-date, but probably is.
29 # It can be loaded from your .emacs.
30
31 ETC = edict-test.el.096 edict.el.096 edict.doc.096 README.096 \
32       Makefile.096 install.edict.096 README ChangeLog TODO COPYING
33
34 EXTRA_SOURCES = edictj.demo ts-mode.el auto-autoloads.el Makefile
35
36 ELCS = edict.elc dui.elc edict-morphology.elc edict-japanese.elc \
37        edict-english.elc edict-edit.elc edict-test.elc dui-registry.elc
38
39 # path to Emacs
40 EMACS = emacs
41
42 # Emacs without any site or user customizations
43 VANILLA = --no-init-file --no-site-file
44
45 BATCH = $(VANILLA) -batch -eval '(setq stack-trace-on-error t)'
46
47 # path to utilities
48 TAR = tar
49
50 # nothing below this line should be changed
51
52 .phony: tar
53
54 %.elc: %.el
55         $(EMACS) $(BATCH) \
56                  --eval "(setq load-path (cons \".\" load-path))" \
57                  -f batch-byte-compile $<
58
59 all:: $(ELCS)
60
61 clean::
62         rm -f $(ELCS)
63
64 mostlyclean: clean
65
66 extraclean: clean
67
68 distclean: extraclean
69         rm -f core *~
70
71 tar:
72         if [ -e Makefile.FSF ]; then \
73          mv Makefile Makefile.XEmacs; \
74          cp Makefile.FSF Makefile; \
75         fi
76         $(TAR) cvf edict-$(AUTHOR_VERSION)-fsf.tar \
77                    $(ELCS:.elc=.el) $(ETC) $(EXTRA_SOURCES)
78         gzip -9 edict-$(AUTHOR_VERSION)-fsf.tar
79         if [ -e Makefile.XEmacs ]; then mv Makefile.XEmacs Makefile; fi