#
-# $Id: Makefile,v 6.20 1995/08/11 09:31:28 morioka Exp morioka $
+# $Id: Makefile,v 7.45 1997/01/10 15:42:29 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.*)
+VERSION = 7.106
-NEMACS = nemacs
-MULE1 = mule1
-ORIG19 = emacs19
-MULE2 = mule2
+SHELL = /bin/sh
+MAKE = make
+CC = gcc
+CFLAGS = -O2
+RM = /bin/rm -f
+CP = /bin/cp -p
+EMACS = emacs
-# Please specify Emacs Lisp install directory:
-# TMDIR18 = for Emacs 18.* (NEMACS, NEpoch or MULE 1)
-# TMDIR19 = for Emacs 19.* (FSF original, XEmacs or MULE 2)
+BINS = src/ol2 src/decode-b
+UTILS = $(BINS)
+GOMI = $(BINS) mime-setup.el mime-setup.el~ \#mime-setup.el\# *.elc \
+ .gnus-compile*
+FLAGS = -batch -q -no-site-file
-#TMDIR18 = /usr/local/lib/emacs/local.lisp/tm
-#TMDIR19 = /usr/local/lib/mule/site-lisp
+PREFIX = NONE
+EXEC_PREFIX =
-TMDIR18 = $(HOME)/lib/emacs18/lisp
-TMDIR19 = $(HOME)/lib/emacs19/lisp
+TM_FILES = tm/README.en tm/ChangeLog \
+ tm/Makefile tm/TM-MK tm/TM-ELS tm/TM-CFG \
+ tm/tm-def.el \
+ tm/tm-eword.el tm/tm-ew-d.el tm/tm-ew-e.el \
+ tm/tm-view.el tm/tm-parse.el \
+ tm/tm-text.el tm/tm-image.el \
+ tm/tm-play.el tm/tm-partial.el tm/tm-pgp.el \
+ tm/tm-ftp.el tm/tm-latex.el tm/tm-html.el tm/tm-file.el \
+ tm/tm-tar.el \
+ tm/tm-bbdb.el \
+ tm/tm-edit*.el tm/signature.el \
+ tm/tm-setup.el tm/mime-setup.el.in \
+ tm/sc-setup.el \
+ tm/methods/tm* tm/methods/ChangeLog \
+ tm/src/*.c \
+ tm/doc/*.sgml tm/doc/*.texi tm/doc/*.info \
+ tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \
+ tm/old-logs/*.en tm/old-logs/*.ja
-# Please specify GNUS type (`gnus3' or `gnus4') if you use Emacs 18.*
-EMACS18_GNUS = gnus3
-# EMACS18_GNUS = gnus4
+TM_MH_E_FILES = tm-mh-e/Makefile tm-mh-e/mk-tmh tm-mh-e/TMH-ELS \
+ tm-mh-e/*.el tm-mh-e/ChangeLog \
+ tm-mh-e/*.sgml tm-mh-e/*.texi tm-mh-e/*.info
-# Please specify optional load-path
-NEMACS_OPT = /usr/local/lib/nemacs/local.lisp
-MULE1_OPT = /usr/local/lib/mule/local.lisp
-ORIG19_OPT =
-MULE2_OPT =
+GNUS_MIME_FILES = gnus-mime/Makefile gnus-mime/*-path \
+ gnus-mime/Gnus-MIME-* gnus-mime/*.el \
+ gnus-mime/*.sgml gnus-mime/*.texi gnus-mime/*.info \
+ gnus-mime/ChangeLog
-bindir = $(HOME)/bin
+TM_GNUS_FILES = tm-gnus/Makefile tm-gnus/*-path tm-gnus/mk-tgnus \
+ tm-gnus/TGNUS-ELS tm-gnus/*.el tm-gnus/ChangeLog \
+ tm-gnus/*.ol tm-gnus/*.texi tm-gnus/*.info tm-gnus/*.tex
-CC = gcc
-CFLAGS = -O
+TM_MAIL_FILES = tm-mail/TMAIL-ELS tm-mail/*.el tm-mail/ChangeLog
-RM = /bin/rm -f
-CP = /bin/cp -p
+TM_VM_FILES = tm-vm/TM-VM-ELS tm-vm/*.el tm-vm/*.texi tm-vm/*.info \
+ tm-vm/ChangeLog
+
+TM_MUA_FILES = $(TM_MH_E_FILES) $(GNUS_MIME_FILES) $(TM_GNUS_FILES) \
+ $(TM_MAIL_FILES) $(TM_VM_FILES)
+
+MEL_FILES = mel/Makefile mel/MEL-MK mel/MEL-CFG mel/MEL-ELS \
+ mel/*.el mel/ChangeLog
+
+MU_FILES = mu/MU-ELS mu/*.el mu/ChangeLog
+
+TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/TL-ELS \
+ tl/*.el tl/ChangeLog
-UTILS = ol2 decode-b
-GOMI = $(UTILS) *.elc loadpath
-
-TM_FILES = tm/README.eng tm/rel-*.ol tm/Changes* \
- tm/Makefile tm/mk-tm \
- tm/make-lpath tm/inst-el tm/inst-elc \
- tm/tm-view.el tm/tiny-mime.el \
- tm/tm-mule.el tm/tm-nemacs.el tm/tm-orig.el tm/tm-misc.el \
- tm/tm-ftp.el tm/tm-latex.el tm/tm-partial.el \
- tm/tm-rich.el tm/richtext.el tm/tinyrich.el \
- tm/tm-comp.el \
- tm/tm-setup.el tm/mime-setup.el \
- tm/signature.el tm/sc-setup.el tm/gnushook.el \
- tm/*.c tm/methods \
- tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex \
- tm/doc/*.texi
-
-TM_MUA_FILES = tm/tm-rmail.el tm/tm-vm.el \
- tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \
- tm/gnus/*.el \
- tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/code-jp.ol \
- tm/mh-e/*.el
-
-MEL_FILES = mel/*.el mel/Makefile mel/mk-mel
-
-TL_FILES = tl/README.eng \
- tl/Makefile tl/Makefile.bc tl/loadpath \
- tl/*.el tl/doc/*.texi
-
-FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES)
-
-TARFILE = tm6.71.tar
-
-
-lpath-nemacs:
- ./make-lpath $(NEMACS_OPT)
-
-nemacs: lpath-nemacs
- cd ../tl; PWD=`pwd` make nemacs NEMACS=$(NEMACS)
- cd ../mel; PWD=`pwd` make elc EMACS=$(NEMACS)
- $(NEMACS) -batch -l mk-tm -f compile-tm
- cd gnus; PWD=`pwd` make gnus3 EMACS=$(NEMACS)
- cd mh-e; PWD=`pwd` \
- make nemacs NEMACS=$(NEMACS) NEMACS_MH_E=$(NEMACS_MH_E)
-
-nemacs-vm: lpath-nemacs
- make -f Makefile.bc tm-vm EMACS=$(NEMACS) EMACS_TYPE=nemacs
-
-install-nemacs: nemacs install-mua-18
- cd ../tl; PWD=`pwd` make install-nemacs NEMACS=$(NEMACS)
- cd ../mel; PWD=`pwd` make install-18 EMACS=$(NEMACS)
- $(NEMACS) -batch -l mk-tm -f install-tm $(TMDIR18)
- cd gnus; PWD=`pwd` make install-18 EMACS=$(NEMACS) TMDIR18=$(TMDIR18)
-
-lpath-mule1:
- ./make-lpath $(MULE1_OPT)
-
-mule1: lpath-mule1
- cd ../tl; PWD=`pwd` make mule1 MULE1=$(MULE1)
- cd ../mel; PWD=`pwd` make elc EMACS=$(MULE1)
- $(MULE1) -batch -l mk-tm -f compile-tm
- cd gnus; PWD=`pwd` make gnus3 EMACS=$(MULE1)
- cd mh-e; PWD=`pwd` \
- make mule1 MULE1=$(MULE1) NEMACS_MH_E=$(MULE1_MH_E)
-
-mule1-vm: lpath-mule1
- make -f Makefile.bc tm-vm EMACS=$(MULE1) EMACS_TYPE=mule
-
-install-mule1: mule1 install-mua-18
- cd ../tl; PWD=`pwd` make install-mule1 MULE1=$(MULE1)
- cd ../mel; PWD=`pwd` make install-18 EMACS=$(MULE1)
- $(MULE1) -batch -l mk-tm -f install-tm $(TMDIR18)
- cd gnus; PWD=`pwd` make install-18 EMACS=$(MULE1) TMDIR18=$(TMDIR18)
-
-install-mua-18:
- cd mh-e; PWD=`pwd` make install-18 TMDIR18=$(TMDIR18)
- make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR18)
-
-
-lpath-orig19:
- ./make-lpath $(ORIG19_OPT)
-
-orig19: lpath-orig19
- cd ../tl; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
- cd ../mel; PWD=`pwd` make elc EMACS=$(ORIG19)
- $(ORIG19) -batch -l mk-tm -f compile-tm
- cd gnus; PWD=`pwd` make gnus4 EMACS=$(ORIG19)
-# If you use (ding) GNUS, please comment use following:
-# cd gnus; PWD=`pwd` make dgnus EMACS=$(ORIG19)
- cd mh-e; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
-
-orig19-vm: lpath-orig19
- make -f Makefile.bc tm-vm EMACS=$(ORIG19) EMACS_TYPE=orig
-
-install-orig19: orig19 install-mua-19
- cd ../tl; PWD=`pwd` make install-orig19 ORIG19=$(ORIG19)
- cd ../mel; PWD=`pwd` make install-19 EMACS=$(ORIG19)
- $(ORIG19) -batch -l mk-tm -f install-tm $(TMDIR19)
- cd gnus; PWD=`pwd` make install-19 EMACS=$(ORIG19) TMDIR19=$(TMDIR19)
-
-lpath-mule2:
- ./make-lpath $(MULE2_OPT)
-
-mule2: lpath-mule2
- cd ../tl; PWD=`pwd` make mule2 MULE2=$(MULE2)
- cd ../mel; PWD=`pwd` make elc EMACS=$(MULE2)
- $(MULE2) -batch -l mk-tm -f compile-tm
- cd gnus; PWD=`pwd` make gnus4 EMACS=$(MULE2)
-# If you use (ding) GNUS, please comment use following:
-# cd gnus; PWD=`pwd` make dgnus EMACS=$(MULE2)
- cd mh-e; PWD=`pwd` make mule2 MULE2=$(MULE2)
-
-mule2-vm: lpath-mule2
- make -f Makefile.bc tm-vm EMACS=$(MULE2) EMACS_TYPE=mule
+BITMAP_FILES = bitmap-mule/BITMAP-* bitmap-mule/Makefile \
+ bitmap-mule/*.el bitmap-mule/*.bdf \
+ bitmap-mule/README.* bitmap-mule/ChangeLog
-install-mule2: mule2 install-mua-19
- cd ../tl; PWD=`pwd` make install-mule2 MULE2=$(MULE2)
- cd ../mel; PWD=`pwd` make install-19 EMACS=$(MULE2)
- $(MULE2) -batch -l mk-tm -f install-tm $(TMDIR19)
- cd gnus; PWD=`pwd` make install-19 EMACS=$(MULE2) TMDIR19=$(TMDIR19)
+EMU_FILES = emu/EMU-ELS emu/*.el emu/ChangeLog
-install-mua-19:
- cd mh-e; PWD=`pwd` make install-19 TMDIR19=$(TMDIR19)
- make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR19)
+SINFO_FILES = sinfo/SINFO-* sinfo/Makefile \
+ sinfo/*.dtd sinfo/*.el sinfo/*-mapping sinfo/ChangeLog
+FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(MU_FILES) \
+ $(TL_FILES) $(BITMAP_FILES) $(EMU_FILES) $(SINFO_FILES)
-all: $(UTILS) $(DVI)
+elc:
+ $(EMACS) $(FLAGS) -l TM-MK -f compile-tm $(PREFIX) $(EXEC_PREFIX)
+# $(SHELL) .gnus-compile
-ol2: ol2.c
- $(CC) $(CFLAGS) ol2.c -o ol2
+install-elc: elc
+ $(EMACS) $(FLAGS) -l TM-MK -f install-tm $(PREFIX) $(EXEC_PREFIX)
-decode-b: decode-b.c
- $(CC) $(CFLAGS) decode-b.c -o decode-b
+
+all: $(UTILS) $(DVI) elc
+
+src/ol2: src/ol2.c
+ $(CC) $(CFLAGS) src/ol2.c -o src/ol2
+
+src/decode-b: src/decode-b.c
+ $(CC) $(CFLAGS) src/decode-b.c -o src/decode-b
tex: ol2
- cd doc; make tex
+ cd doc; $(MAKE) tex
dvi: ol2
- cd doc; make dvi
+ cd doc; $(MAKE) dvi
ps: ol2
- cd doc; make ps
+ cd doc; $(MAKE) ps
-install: $(UTILS) methods
- $(CP) $(UTILS) $(bindir)
- $(CP) methods/* $(bindir)
+install: $(UTILS) methods install-elc install-execs
+execs: $(UTILS)
-clean:
- -$(RM) $(GOMI)
- -cd doc; make clean
- -cd gnus; make clean
- -cd mh-e; make clean
- cd ../mel; PWD=`pwd` make clean
+install-execs:
+ $(EMACS) $(FLAGS) -l TM-MK -f install-execs $(PREFIX) $(EXEC_PREFIX)
-tar:
- cd doc; make tex
- cd ..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE)
+update-xemacs:
+ $(EMACS) $(FLAGS) -l TM-MK -f update-xemacs-source
+
+
+clean:
+ -$(RM) $(GOMI)
+ -cd doc && $(MAKE) clean
+ -cd gnus && $(MAKE) clean
+ -cd mh-e && $(MAKE) clean
+ cd ../mel && $(MAKE) clean
+
+
+oomori:
+ cd doc; $(MAKE) tex
+ cd ..; gtar cvf tm-$(VERSION).tar $(FILES)
+ -cd ..; mkdir tm-$(VERSION)
+ cp ../tm-oomori/README.?? ../tm-$(VERSION)
+ cd ../tm-$(VERSION); gtar xvf ../tm-$(VERSION).tar
+ cd ..; gtar cvzf tm-$(VERSION).tar.gz tm-$(VERSION)
+ cd ..; $(RM) -r tm-$(VERSION); rm tm-$(VERSION).tar
+
+
+release:
+ cd ..; mv tm$(VERSION).tar.gz /pub/GNU/elisp/mime/beta/
+ -cd /pub/GNU/elisp/mime/beta/ ; rm tm-oomori-current.tar.gz
+ cd /pub/GNU/elisp/mime/beta/ ; ln -s tm$(VERSION).tar.gz tm-oomori-current.tar.gz