This commit was generated by cvs2svn to compensate for changes in r473,
[elisp/tm.git] / Makefile
index 5f4b818..ddcd0ca 100644 (file)
--- a/Makefile
+++ b/Makefile
 #
-# $Id: Makefile,v 6.10 1995/05/19 11:40:09 morioka Exp morioka $
+# $Id: Makefile,v 7.30 1996/10/16 00:35: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.*)
-
-NEMACS = nemacs
-MULE1  = mule1
-ORIG19 = emacs19
-MULE2  = mule2
-
-# 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)
-
-#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
-
-# Please specify GNUS type (`gnus3' or `gnus4') if you use Emacs 18.*
-EMACS18_GNUS  = gnus3
-# EMACS18_GNUS  = gnus4
-
-# 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 =
-
-bindir = $(HOME)/bin
+VERSION = 7.91
 
+SHELL  = /bin/sh
+MAKE   = make
 CC     = gcc
-CFLAGS = -O
-
+CFLAGS = -O2
 RM     = /bin/rm -f
 CP     = /bin/cp -p
+EMACS  = emacs
 
-UTILS  = ol2 decode-b
-GOMI   = $(UTILS) *.elc .lpath.el
-FILES  = tm/README.eng tm/rel-*.ol \
-       tm/Makefile tm/Makefile.bc tm/make-lpath tm/inst-el tm/inst-elc \
-       tm/*.el tm/*.c tm/methods \
-       tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex tm/doc/*.texi \
-       tm/gnus/Makefile tm/gnus/Makefile.bc tm/gnus/*.el \
-       tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/*.el \
-       tl/README.eng \
-       tl/Makefile tl/Makefile.bc tl/loadpath \
-       tl/*.el tl/doc/*.texi
-
-TARFILE = tm6.50.tar
-
+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
 
-lpath-nemacs:
-       ./make-lpath $(NEMACS_OPT)
+PREFIX = NONE
+EXEC_PREFIX =
 
-nemacs:        lpath-nemacs
-       make -f Makefile.bc all EMACS=$(NEMACS) EMACS_TYPE=nemacs
-#      cd gnus; PWD=`pwd` \
-#              make nemacs NEMACS=$(NEMACS) EMACS18_GNUS=$(EMACS18_GNUS)
-       cd mh-e; PWD=`pwd` \
-               make nemacs NEMACS=$(NEMACS) NEMACS_MH_E=$(NEMACS_MH_E)
+TM_FILES = tm/README.en tm/ChangeLog \
+               tm/Makefile tm/inst-tm 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
 
-nemacs-vm: lpath-nemacs
-       make -f Makefile.bc tm-vm EMACS=$(NEMACS) EMACS_TYPE=nemacs
+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/*.ol tm-mh-e/*.texi tm-mh-e/*.info tm-mh-e/*.tex
 
-install-nemacs:        nemacs install-mua-18
-       make -f Makefile.bc install TMDIR=$(TMDIR18) EMACS_TYPE=nemacs
+GNUS_MIME_FILES = gnus-mime/Makefile gnus-mime/*-path \
+               gnus-mime/Gnus-MIME-ELS gnus-mime/*.el \
+               gnus-mime/*.sgml gnus-mime/*.texi gnus-mime/*.info \
+               gnus-mime/*.ol gnus-mime/*.tex gnus-mime/ChangeLog
 
+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
 
-lpath-mule1:
-       ./make-lpath $(MULE1_OPT)
+TM_MAIL_FILES = tm-mail/TMAIL-ELS tm-mail/*.el tm-mail/ChangeLog
 
-mule1: lpath-mule1
-       make -f Makefile.bc all EMACS=$(MULE1) EMACS_TYPE=mule
-#      cd gnus; PWD=`pwd` \
-#              make mule1 MULE1=$(MULE1) EMACS18_GNUS=$(EMACS18_GNUS)
-       cd mh-e; PWD=`pwd` \
-               make mule1 MULE1=$(MULE1) NEMACS_MH_E=$(MULE1_MH_E)
+TM_VM_FILES =  tm-vm/TM-VM-ELS tm-vm/*.el tm-vm/ChangeLog
 
-mule1-vm: lpath-nemacs
-       make -f Makefile.bc tm-vm EMACS=$(MULE1) EMACS_TYPE=mule
+TM_MUA_FILES = $(TM_MH_E_FILES) $(GNUS_MIME_FILES) $(TM_GNUS_FILES) \
+               $(TM_MAIL_FILES) $(TM_VM_FILES)
 
-install-mule1: mule1 install-mua-18
-       make -f Makefile.bc install TMDIR=$(TMDIR18) EMACS_TYPE=mule
+MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/MEL-ELS mel/ChangeLog
 
-install-mua-18:
-#      cd gnus; PWD=`pwd` make install-18 TMDIR18=$(TMDIR18)
-       cd mh-e; PWD=`pwd` make install-18 TMDIR18=$(TMDIR18)
-       make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR18)
+MU_FILES = mu/*.el mu/MU-ELS mu/ChangeLog
 
+TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/TL-ELS \
+               tl/*.el tl/*.bdf \
+               tl/doc/*.ol tl/doc/*.tex tl/doc/*.texi tl/ChangeLog
 
-lpath-orig19:
-       ./make-lpath $(ORIG19_OPT)
+FILES  = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(MU_FILES) $(TL_FILES)
 
-orig19:        lpath-orig19
-       make -f Makefile.bc all EMACS=$(ORIG19) EMACS_TYPE=orig
-#      cd gnus; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
-       cd mh-e; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
+elc:
+       $(EMACS) $(FLAGS) -l inst-tm -f compile-tm $(PREFIX) $(EXEC_PREFIX)
+#      $(SHELL) .gnus-compile
 
-orig19-vm: lpath-nemacs
-       make -f Makefile.bc tm-vm EMACS=$(ORIG19) EMACS_TYPE=orig
+install-elc:   elc
+       $(EMACS) $(FLAGS) -l inst-tm -f install-tm $(PREFIX) $(EXEC_PREFIX)
 
-install-orig19:        orig19 install-mua-19
-       make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=orig
 
+all:   $(UTILS) $(DVI) elc
 
-lpath-mule2:
-       ./make-lpath $(MULE2_OPT)
+src/ol2:       src/ol2.c
+       $(CC) $(CFLAGS) src/ol2.c -o src/ol2
 
-mule2: lpath-mule2
-       make -f Makefile.bc all EMACS=$(MULE2) EMACS_TYPE=mule
-#      cd gnus; PWD=`pwd` make mule2 MULE2=$(MULE2)
-       cd mh-e; PWD=`pwd` make mule2 MULE2=$(MULE2)
-
-mule2-vm: lpath-nemacs
-       make -f Makefile.bc tm-vm EMACS=$(MULE2) EMACS_TYPE=mule
-
-install-mule2: mule2 install-mua-19
-       make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=mule
-
-install-mua-19:
-#      cd gnus; PWD=`pwd` make install-19 TMDIR19=$(TMDIR19)
-       cd mh-e; PWD=`pwd` make install-19 TMDIR19=$(TMDIR19)
-       make -f Makefile.bc install-tm-vm TMDIR=$(TMDIR19)
-
-
-all:   $(UTILS) $(DVI)
-
-ol2:   ol2.c
-       $(CC) $(CFLAGS) ol2.c -o ol2
-
-decode-b:      decode-b.c
-       $(CC) $(CFLAGS) decode-b.c -o decode-b
+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
+       $(EMACS) $(FLAGS) -l inst-tm -f install-execs $(PREFIX) $(EXEC_PREFIX)
 
 
 clean:
        -$(RM) $(GOMI)
-       -cd doc; make clean
-       -cd gnus; make clean
-       -cd mh-e; make clean
-
-
-tar:
-       cd doc; make tex
-       cd ..; tar cvf $(TARFILE) $(FILES); gzip -9 $(TARFILE)
+       -cd doc; $(MAKE) clean
+       -cd gnus; $(MAKE) clean
+       -cd mh-e; $(MAKE) clean
+       cd ../mel; PWD=`pwd` $(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