X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=inline;f=Makefile;h=be126e2bf6e4d7974decc878000795ae1b870310;hb=b130d8500e514fa13ed91f7710ef8dcb09e589c9;hp=a4d88edffd2daec20e0b603b6785755dda1c041e;hpb=8dda7bf4db4e9ca5845df1ac995b3a1d40de723e;p=elisp%2Ftm.git diff --git a/Makefile b/Makefile index a4d88ed..be126e2 100644 --- a/Makefile +++ b/Makefile @@ -1,45 +1,142 @@ -bindir = $(HOME)/bin -CC = gcc -CFLAGS = -O +# +# $Id: Makefile,v 7.12 1995/12/25 05:43:05 morioka Exp morioka $ +# -UTILS = ol2 decode-b -METHODS = tm-au tm-file tm-image tm-latex tm-mpeg -GOMI = $(UTILS) -FILES = README.eng Makefile *.el *.c methods \ - doc/Makefile doc/*.pln doc/*.ol doc/*.tex +include config.tm + +BINS = src/ol2 src/decode-b +UTILS = $(BINS) +GOMI = $(BINS) *.elc loadpath + +TM_FILES = tm/README.en tm/Changes* \ + tm/config.tm tm/Makefile tm/mk-tm \ + tm/tm-mule.el tm/tm-nemacs.el tm/tm-orig.el 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-rich.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-edit.el tm/signature.el \ + tm/tm-setup.el tm/mime-setup.el \ + tm/sc-setup.el \ + tm/methods/tm* \ + tm/src/*.c \ + tm/doc/Makefile tm/doc/*.ol tm/doc/*.tex \ + tm/doc/*.texi + +TM_MUA_FILES = tm/tm-rmail.el tm/tm-vm.el tm/tm-mail.el \ + tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus \ + tm/gnus/*.el tm/gnus/ChangeLog-* \ + tm/mh-e/Makefile tm/mh-e/mk-tmh tm/mh-e/code-jp.ol \ + tm/mh-e/*.el tm/mh-e/ChangeLog-* + +MEL_FILES = mel/*.el mel/Makefile mel/mk-mel mel/ChangeLog + +TL_FILES = tl/README.en tl/Makefile tl/mk-tl tl/*.el tl/doc/*.texi \ + tl/ChangeLog + +FILES = $(TM_FILES) $(TM_MUA_FILES) $(MEL_FILES) $(TL_FILES) + +TARFILE = tm7.40.tar.gz + + +18: + cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18) + cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18) + $(EMACS18) -batch -l mk-tm -f compile-tm + cd gnus; PWD=`pwd` $(MAKE) gnus3 EMACS=$(EMACS18) +# If you use GNUS 4.*, please use following comment: +# cd gnus; PWD=`pwd` $(MAKE) gnus4 EMACS=$(EMACS18) + cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS18) + +install-18: 18 + cd ../tl; PWD=`pwd` \ + $(MAKE) install-18 EMACS=$(EMACS18) TLDIR18=$(TLDIR18) + cd ../mel; PWD=`pwd` \ + $(MAKE) install-18 EMACS=$(EMACS18) MELDIR18=$(MELDIR18) + $(EMACS18) -batch -l mk-tm -f install-tm $(TMDIR18) + cd gnus; PWD=`pwd` \ + $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TM_GNUS_DIR18) + cd mh-e; PWD=`pwd` \ + $(MAKE) install-18 EMACS=$(EMACS18) TMDIR18=$(TMH_DIR18) + + +xemacs: + cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS) + cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS) + $(XEMACS) -batch -l mk-tm -f compile-tm + cd gnus; PWD=`pwd` $(MAKE) gnus EMACS=$(XEMACS) + cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(XEMACS) + cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(XEMACS) + cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(XEMACS) + +install-xemacs: xemacs + cd ../tl; PWD=`pwd` \ + $(MAKE) install-19 EMACS=$(XEMACS) TLDIR19=$(TLDIR19) + cd ../mel; PWD=`pwd` \ + $(MAKE) install-19 EMACS=$(XEMACS) MELDIR19=$(MELDIR19) + $(XEMACS) -batch -l mk-tm -f install-tm $(TMDIR19) + cd gnus; PWD=`pwd` \ + $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TM_GNUS_DIR19) + cd mh-e; PWD=`pwd` \ + $(MAKE) install-19 EMACS=$(XEMACS) TMDIR19=$(TMH_DIR19) + + +19_29: + cd ../tl; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29) + cd ../mel; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29) + $(EMACS19_29) -batch -l mk-tm -f compile-tm + cd gnus; PWD=`pwd` $(MAKE) gnus EMACS=$(EMACS19_29) +# cd gnus; PWD=`pwd` $(MAKE) gnus5 EMACS=$(EMACS19_29) + cd gnus; PWD=`pwd` $(MAKE) sgnus EMACS=$(EMACS19_29) + cd mh-e; PWD=`pwd` $(MAKE) elc EMACS=$(EMACS19_29) + +install-19_29: 19_29 + cd ../tl; PWD=`pwd` \ + $(MAKE) install-19 EMACS=$(EMACS19_29) TLDIR19=$(TLDIR19_29) + cd ../mel; PWD=`pwd` \ + $(MAKE) install-19 EMACS=$(EMACS19_29) MELDIR19=$(MELDIR19_29) + $(EMACS19_29) -batch -l mk-tm -f install-tm $(TMDIR19_29) + cd gnus; PWD=`pwd` \ + $(MAKE) install-19_29 EMACS=$(EMACS19_29) \ + TMDIR19_29=$(TM_GNUS_DIR19_29) + cd mh-e; PWD=`pwd` \ + $(MAKE) install-19 EMACS=$(EMACS19_29) TMDIR19=$(TMH_DIR19_29) -TARFILE = tm5.9.1.tar all: $(UTILS) $(DVI) -ol2: ol2.c - $(CC) $(CFLAGS) ol2.c -o ol2 +src/ol2: src/ol2.c + $(CC) $(CFLAGS) src/ol2.c -o src/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 -p $(UTILS) $(bindir) - cp -p methods/* $(bindir) + $(CP) $(UTILS) $(bindir) + $(CP) methods/tm* $(bindir) clean: - rm $(GOMI) - (cd doc; make clean) + -$(RM) $(GOMI) + -cd doc; $(MAKE) clean + -cd gnus; $(MAKE) clean + -cd mh-e; $(MAKE) clean + cd ../mel; PWD=`pwd` $(MAKE) clean -tar: $(FILES) - (cd doc; make tex) - tar cvf $(TARFILE) $(FILES) - gzip -9 $(TARFILE) +tar: + cd doc; $(MAKE) tex + cd ..; gtar cvzf $(TARFILE) $(FILES)