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
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
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.
18 # Makefile to bytecompile edict.el sources under FSF Emacs and build a
19 # tarball that can be untarred somewhere on the load-path.
21 # The recommended location is .../emacs/site-lisp/edict, and the
22 # default location for the dictionary is there also.
24 AUTHOR_VERSION = 0.9.8
25 MAINTAINER = Stephen J. Turnbull <turnbull@sk.tsukuba.ac.jp>
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.
31 ETC = edict-test.el.096 edict.el.096 edict.doc.096 README.096 \
32 Makefile.096 install.edict.096 README ChangeLog TODO COPYING
34 EXTRA_SOURCES = edictj.demo ts-mode.el auto-autoloads.el Makefile
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
42 # Emacs without any site or user customizations
43 VANILLA = --no-init-file --no-site-file
45 BATCH = $(VANILLA) -batch -eval '(setq stack-trace-on-error t)'
50 # nothing below this line should be changed
56 --eval "(setq load-path (cons \".\" load-path))" \
57 -f batch-byte-compile $<
72 if [ -e Makefile.FSF ]; then \
73 mv Makefile Makefile.XEmacs; \
74 cp Makefile.FSF Makefile; \
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