#
-# $Id: Makefile,v 6.1 1995/05/18 16:48:06 morioka Exp morioka $
+# $Id: Makefile,v 7.8 1996/06/27 15:19:48 morioka Exp morioka $
#
# Please specify emacs executables:
-# NEMACS = for NEMACS (or NEpoch)
-# MULE1 = for Mule 1.* (based on Emacs 18.*)
-# ORIG19 = for Emacs 19.* (FSF original or XEmacs)
-# MULE2 = for MULE 2.* (based on Emacs 19.*)
-
- NEMACS = nemacs
- MULE1 = mule
- ORIG19 = emacs19
- MULE2 = mule2
+EMACS = mule
+FLAGS = -batch -q -no-site-file -l mk-tgnus
# Please specfy Emacs Lisp install directory:
# TMDIR18 = for Emacs 18.* (NEMACS, NEpoch or MULE 1)
# TMDIR19 = for Emacs 19.* (FSF original, XEmacs or MULE 2)
-# TMDIR18 = /usr/local/lib/emacs/local.lisp/tm
-# TMDIR19 = /usr/local/lib/mule/site-lisp
- TMDIR18 = $(HOME)/lib/emacs18/lisp
- TMDIR19 = $(HOME)/lib/emacs19/lisp
-
- EMACS18_GNUS = gnus3
+# PREFIX = /usr/local
+PREFIX = $(HOME)
- EMACS18_GNUS3 = gnus
- EMACS18_NNTP3 = nntp
+EMACS_PREFIX = emacs
+# EMACS_PREFIX = mule
- EMACS18_GNUS4 = /usr/local/lib/emacs/local.lisp/gnus-4.1/lisp/gnus
- EMACS18_NNTP4 = /usr/local/lib/emacs/local.lisp/gnus-4.1/lisp/nntp
+DATADIR18 = $(PREFIX)/lib
+DATADIR19 = $(PREFIX)/lib
+DATADIR19_29 = $(PREFIX)/share
- EMACS19_GNUS = gnus
- EMACS19_NNTP = nntp
+TMDIR18 = $(DATADIR18)/$(EMACS_PREFIX)/local.lisp/tm
+TMDIR19 = $(DATADIR19)/$(EMACS_PREFIX)/site-lisp
+TMDIR19_29 = $(DATADIR19_29)/$(EMACS_PREFIX)/site-lisp
-nemacs: nemacs-$(EMACS18_GNUS)
-nemacs-gnus3:
- make -f Makefile.bc all \
- EMACS=$(NEMACS) EMACS_TYPE=nemacs GNUS_TYPE=gnus3 \
- GNUS=$(EMACS18_GNUS3) NNTP=$(EMACS18_NNTP3)
+FILES = tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
+ tm/gnus/*.el tm/gnus/ChangeLog tm/doc/tm-gnus*.texi
-nemacs-gnus4:
- make -f Makefile.bc all \
- EMACS=$(NEMACS) EMACS_TYPE=nemacs GNUS_TYPE=gnus4 \
- GNUS=$(EMACS18_GNUS4) NNTP=$(EMACS18_NNTP4)
-mule1: mule1-$(EMACS18_GNUS)
+TARFILE = tm-gnus7.72.tar
-mule1-gnus3:
- make -f Makefile.bc all \
- EMACS=$(MULE1) EMACS_TYPE=mule GNUS_TYPE=gnus3 \
- GNUS=$(EMACS18_GNUS3) NNTP=$(EMACS18_NNTP3)
-mule1-gnus4:
- make -f Makefile.bc all \
- EMACS=$(MULE1) EMACS_TYPE=mule GNUS_TYPE=gnus4 \
- GNUS=$(EMACS18_GNUS4) NNTP=$(EMACS18_NNTP4)
+gnus:
+ $(EMACS) $(FLAGS) -f compile-tm-gnus
-install-18:
- ../inst-el $(TMDIR18) tm-gnus*.el
- ../inst-elc $(TMDIR18) tm-gnus*.elc
+gnus3:
+ $(EMACS) $(FLAGS) -l g3-path -f compile-tm-gnus
+gnus4:
+ $(EMACS) $(FLAGS) -l g4-path -f compile-tm-gnus
-orig19:
- make -f Makefile.bc all \
- EMACS=$(ORIG19) EMACS_TYPE=orig GNUS_TYPE=gnus4 \
- GNUS=$(EMACS19_GNUS) NNTP=$(EMACS19_NNTP)
+gnus5:
+ $(EMACS) $(FLAGS) -l g5-path -f compile-tm-gnus
-mule2:
- make -f Makefile.bc all \
- EMACS=$(MULE2) EMACS_TYPE=mule GNUS_TYPE=gnus4 \
- GNUS=$(EMACS19_GNUS) NNTP=$(EMACS19_NNTP)
+install-18:
+ $(EMACS) $(FLAGS) -f install-tm-gnus $(TMDIR18)
install-19:
- ../inst-el $(TMDIR19) tm-gnus.el tm-gnus4.el
- ../inst-elc $(TMDIR19) tm-gnus*.elc
+ $(EMACS) $(FLAGS) -f install-tm-gnus $(TMDIR19)
+install-19_29:
+ $(EMACS) $(FLAGS) -f install-tm-gnus $(TMDIR19_29)
clean:
-rm *.elc
+
+
+tar:
+ cd ../..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE)