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)/external-widget.info \
47 $(INFODIR)/info.info \
48 $(INFODIR)/standards.info \
49 $(INFODIR)/term.info \
50 $(INFODIR)/termcap.info \
51 $(INFODIR)/texinfo.info \
52 $(INFODIR)/widget.info \
53 $(INFODIR)/xemacs-faq.info
67 ../info/cl.info : cl.texi
68 -$(MAKEINFO) cl.texi -o ../info/cl.info
70 ../info/custom.info : custom.texi
71 -$(MAKEINFO) custom.texi -o ../info/custom.info
73 ../info/external-widget.info : external-widget.texi
74 -$(MAKEINFO) external-widget.texi -o ../info/external-widget.info
76 ../info/info.info : info.texi
77 -$(MAKEINFO) info.texi -o ../info/info.info
79 ../info/standards.info : standards.texi
80 -$(MAKEINFO) standards.texi -o ../info/standards.info
82 ../info/term.info : term.texi
83 -$(MAKEINFO) term.texi -o ../info/term.info
85 ../info/termcap.info : termcap.texi
86 -$(MAKEINFO) termcap.texi -o ../info/termcap.info
88 ../info/texinfo.info : texinfo.texi
89 -$(MAKEINFO) texinfo.texi -o ../info/texinfo.info
91 ../info/widget.info : widget.texi
92 -$(MAKEINFO) widget.texi -o ../info/widget.info
94 ../info/xemacs-faq.info : xemacs-faq.texi
95 -$(MAKEINFO) xemacs-faq.texi -o ../info/xemacs-faq.info
98 # ../info/w3.info : w3.texi
99 # -$(MAKEINFO) w3.texi -o ../info/w3.info
101 # ../info/vm.info : vm.texi
102 # -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \
103 # -f texinfo-format-buffer -f save-buffer
104 # -mv vm.info* ../info
106 # special = # ../info/w3.info ../info/vm.info ../info/texinfo.info
110 # Subdirectories to make recursively.
111 SUBDIR = xemacs lispref new-users-guide internals
115 -for d in $(SUBDIR) ; do (cd ./$$d && $(RECURSIVE_MAKE) $@) ; done
120 -cd ./$@ && $(RECURSIVE_MAKE)
122 -cd ./$@ && $(RECURSIVE_MAKE)
123 new-users-guide: FRC.new-users-guide
124 -cd ./$@ && $(RECURSIVE_MAKE)
125 internals: FRC.internals
126 -cd ./$@ && $(RECURSIVE_MAKE)
128 # -cd ./$@ && $(RECURSIVE_MAKE)
130 # -cd ./$@ && $(RECURSIVE_MAKE)
131 # FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats:
132 FRC.info FRC.dvi FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals:
139 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
142 .PHONY: mostlyclean clean distclean realclean extraclean
144 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
145 rm -f *.toc *.aux *.log *.op \
146 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps
148 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
151 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
153 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
154 extraclean: distclean
155 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done