1 # Makefile for man subdirectory in XEmacs
2 # Copyright (C) 1995 Board of Trustees, University of Illinois
3 # Copyright (C) 1994, 1995 Sun Microsystems.
5 # This file is part of XEmacs.
7 # XEmacs is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 2, or (at your option) any
12 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 # You should have received a copy of the GNU General Public License
18 # along with XEmacs; see the file COPYING. If not, write to
19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 # Boston, MA 02111-1307, USA.
22 # Avoid trouble on systems where the "SHELL" variable might be
23 # inherited from the environment.
27 EMACSFLAGS = -batch -q -no-site-file
29 # NOTE: You *must* have makeinfo-1.68 or later to rebuild the
35 .SUFFIXES: .info .texi .dvi
37 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
39 # Ughhh! The things we do to have portable makefiles...
45 $(INFODIR)/custom.info \
46 $(INFODIR)/emodules.info \
47 $(INFODIR)/external-widget.info \
48 $(INFODIR)/info.info \
49 $(INFODIR)/standards.info \
50 $(INFODIR)/term.info \
51 $(INFODIR)/termcap.info \
52 $(INFODIR)/texinfo.info \
53 $(INFODIR)/widget.info \
54 $(INFODIR)/xemacs-faq.info
69 ../info/cl.info : cl.texi
70 -$(MAKEINFO) cl.texi -o ../info/cl.info
72 ../info/custom.info : custom.texi
73 -$(MAKEINFO) custom.texi -o ../info/custom.info
75 ../info/emodules.info : emodules.texi
76 -$(MAKEINFO) emodules.texi -o ../info/emodules.info
78 ../info/external-widget.info : external-widget.texi
79 -$(MAKEINFO) external-widget.texi -o ../info/external-widget.info
81 ../info/info.info : info.texi
82 -$(MAKEINFO) info.texi -o ../info/info.info
84 ../info/standards.info : standards.texi
85 -$(MAKEINFO) standards.texi -o ../info/standards.info
87 ../info/term.info : term.texi
88 -$(MAKEINFO) term.texi -o ../info/term.info
90 ../info/termcap.info : termcap.texi
91 -$(MAKEINFO) termcap.texi -o ../info/termcap.info
93 ../info/texinfo.info : texinfo.texi
94 -$(MAKEINFO) texinfo.texi -o ../info/texinfo.info
96 ../info/widget.info : widget.texi
97 -$(MAKEINFO) widget.texi -o ../info/widget.info
99 ../info/xemacs-faq.info : xemacs-faq.texi
100 -$(MAKEINFO) xemacs-faq.texi -o ../info/xemacs-faq.info
103 # ../info/w3.info : w3.texi
104 # -$(MAKEINFO) w3.texi -o ../info/w3.info
106 # ../info/vm.info : vm.texi
107 # -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \
108 # -f texinfo-format-buffer -f save-buffer
109 # -mv vm.info* ../info
111 # special = # ../info/w3.info ../info/vm.info ../info/texinfo.info
115 # Subdirectories to make recursively.
116 SUBDIR = xemacs lispref new-users-guide internals
120 -for d in $(SUBDIR) ; do (cd ./$$d && $(RECURSIVE_MAKE) $@) ; done
125 -cd ./$@ && $(RECURSIVE_MAKE)
127 -cd ./$@ && $(RECURSIVE_MAKE)
128 new-users-guide: FRC.new-users-guide
129 -cd ./$@ && $(RECURSIVE_MAKE)
130 internals: FRC.internals
131 -cd ./$@ && $(RECURSIVE_MAKE)
133 # -cd ./$@ && $(RECURSIVE_MAKE)
135 # -cd ./$@ && $(RECURSIVE_MAKE)
136 # FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats:
137 FRC.info FRC.dvi FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals:
144 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
147 .PHONY: mostlyclean clean distclean realclean extraclean
149 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
150 rm -f *.toc *.aux *.log *.op \
151 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps
153 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
156 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
158 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
159 extraclean: distclean
160 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done