1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
# Makefile for man subdirectory in XEmacs
# Copyright (C) 1995 Board of Trustees, University of Illinois
# Copyright (C) 1994, 1995 Sun Microsystems.
# This file is part of XEmacs.
# XEmacs is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.
# XEmacs is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
# You should have received a copy of the GNU General Public License
# along with XEmacs; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# Avoid trouble on systems where the "SHELL" variable might be
# inherited from the environment.
SHELL = /bin/sh
EMACS = ../src/xemacs
EMACSFLAGS = -batch -q -no-site-file
# NOTE: You *must* have makeinfo-1.68 or later to rebuild the
# info tree.
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
.SUFFIXES:
.SUFFIXES: .info .texi .dvi
RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
# Subdirectories to make recursively.
SUBDIR = auctex xemacs lispref new-users-guide internals tm gnats skk
../info/%.info : %.texi
-$(MAKEINFO) -o $@ $<
srcs = cc-mode cl custom ediff efs external-widget forms \
gnus hm--html-mode \
ilisp info ispell mailcrypt message mh-e \
pcl-cvs ph psgml psgml-api reftex rmail standards supercite term \
termcap texinfo vhdl-mode viper vm w3-faq w3 widget xemacs-faq
info = $(srcs:%=../info/%.info)
dvi = $(srcs:%=%.dvi)
special = # ../info/w3.info ../info/vm.info ../info/texinfo.info
all : info
info : $(info) $(special)
-for d in $(SUBDIR) ; do \
(if test -d $${d}; then cd $${d} && $(RECURSIVE_MAKE) $@; fi) ;\
done
xemacs: FRC.xemacs
-cd $@ && $(RECURSIVE_MAKE)
lispref: FRC.lispref
-cd $@ && $(RECURSIVE_MAKE)
new-users-guide: FRC.new-users-guide
-cd $@ && $(RECURSIVE_MAKE)
internals: FRC.internals
-cd $@ && $(RECURSIVE_MAKE)
tm: FRC.tm
-cd $@ && $(RECURSIVE_MAKE)
gnats: FRC.gnats
-cd $@ && $(RECURSIVE_MAKE)
FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats:
../info/w3.info : w3.texi
-$(MAKEINFO) w3.texi -o ../info/w3.info
../info/w3-faq.info : w3-faq.texi
-$(MAKEINFO) w3-faq.texi -o ../info/w3-faq.info
../info/texinfo.info : texinfo.texi
-$(MAKEINFO) texinfo.texi -o ../info/texinfo.info
../info/vm.info : vm.texi
-$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \
-f texinfo-format-buffer -f save-buffer
-mv vm.info* ../info
texinfo.dvi: texinfo.texi
$(TEXI2DVI) $<
.texi.dvi:
$(TEXI2DVI) $<
.PHONY: dvi
dvi : $(dvi)
for d in $(SUBDIR) ; do \
(if test -d $${d}; then cd $${d} && $(RECURSIVE_MAKE) $@; fi) ;\
done
.PHONY: mostlyclean clean distclean realclean extraclean
mostlyclean:
for d in $(SUBDIR) ; do \
(if test -d $${d}; then cd $${d} && $(RECURSIVE_MAKE) $@; fi) ;\
done
rm -f *.toc *.aux *.log \
*.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps
clean: mostlyclean
for d in $(SUBDIR) ; do \
(if test -d $${d}; then cd $${d} && $(RECURSIVE_MAKE) $@; fi) ;\
done
rm -f *.o core *.dvi
distclean: clean
for d in $(SUBDIR) ; do \
(if test -d $${d}; then cd $${d} && $(RECURSIVE_MAKE) $@; fi) ;\
done
realclean: distclean
for d in $(SUBDIR) ; do \
(if test -d $${d}; then cd $${d} && $(RECURSIVE_MAKE) $@; fi) ;\
done
extraclean: distclean
for d in $(SUBDIR) ; do \
(if test -d $${d}; then cd $${d} && $(RECURSIVE_MAKE) $@; fi) ;\
done
-rm -f *~ \#*
|