XEmacs 21.2.6
[chise/xemacs-chise.git.1] / man / Makefile
1 #  Makefile for man subdirectory in XEmacs
2 #   Copyright (C) 1995 Board of Trustees, University of Illinois
3 #   Copyright (C) 1994, 1995 Sun Microsystems.
4
5 # This file is part of XEmacs.
6
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
10 # later version.
11
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
15 # for more details.
16
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.
21
22 # Avoid trouble on systems where the "SHELL" variable might be
23 # inherited from the environment.
24 SHELL = /bin/sh
25
26 EMACS = ../src/xemacs
27 EMACSFLAGS = -batch -q -no-site-file 
28
29 # NOTE:  You *must* have makeinfo-1.68 or later to rebuild the
30 # info tree.
31 MAKEINFO = makeinfo
32 TEXI2DVI = texi2dvi
33
34 .SUFFIXES:
35 .SUFFIXES: .info .texi .dvi
36
37 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
38
39 # Ughhh!  The things we do to have portable makefiles...
40
41 INFODIR = ../info
42
43 info_files = \
44         $(INFODIR)/cl.info \
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
54
55 dvi_files = \
56         cl.dvi \
57         custom.dvi \
58         external-widget.dvi \
59         info.dvi \
60         standards.dvi \
61         term.dvi \
62         termcap.dvi \
63         texinfo.dvi \
64         widget.dvi \
65         xemacs-faq.dvi
66
67 ../info/cl.info : cl.texi
68         -$(MAKEINFO) cl.texi -o ../info/cl.info
69
70 ../info/custom.info : custom.texi
71         -$(MAKEINFO) custom.texi -o ../info/custom.info
72
73 ../info/external-widget.info : external-widget.texi
74         -$(MAKEINFO) external-widget.texi -o ../info/external-widget.info
75
76 ../info/info.info : info.texi
77         -$(MAKEINFO) info.texi -o ../info/info.info
78
79 ../info/standards.info : standards.texi
80         -$(MAKEINFO) standards.texi -o ../info/standards.info
81
82 ../info/term.info : term.texi
83         -$(MAKEINFO) term.texi -o ../info/term.info
84
85 ../info/termcap.info : termcap.texi
86         -$(MAKEINFO) termcap.texi -o ../info/termcap.info
87
88 ../info/texinfo.info : texinfo.texi
89         -$(MAKEINFO) texinfo.texi -o ../info/texinfo.info
90
91 ../info/widget.info : widget.texi
92         -$(MAKEINFO) widget.texi -o ../info/widget.info
93
94 ../info/xemacs-faq.info : xemacs-faq.texi
95         -$(MAKEINFO) xemacs-faq.texi -o ../info/xemacs-faq.info
96
97
98 # ../info/w3.info : w3.texi
99 #       -$(MAKEINFO) w3.texi -o ../info/w3.info
100
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
105
106 # special = # ../info/w3.info ../info/vm.info ../info/texinfo.info
107
108 all: info
109
110 # Subdirectories to make recursively.
111 SUBDIR = xemacs lispref new-users-guide internals
112 .PHONY: $(SUBDIR)
113
114 info : $(info_files)
115         -for d in $(SUBDIR) ; do (cd ./$$d && $(RECURSIVE_MAKE) $@) ; done
116
117 .PHONY: info dvi
118
119 xemacs: FRC.xemacs
120         -cd ./$@ && $(RECURSIVE_MAKE)
121 lispref: FRC.lispref
122         -cd ./$@ && $(RECURSIVE_MAKE)
123 new-users-guide: FRC.new-users-guide
124         -cd ./$@ && $(RECURSIVE_MAKE)
125 internals: FRC.internals
126         -cd ./$@ && $(RECURSIVE_MAKE)
127 # tm: FRC.tm
128 #       -cd ./$@ && $(RECURSIVE_MAKE)
129 # gnats: FRC.gnats
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:
133
134
135 .texi.dvi:
136         $(TEXI2DVI) $<
137
138 dvi : $(dvi_files)
139         -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
140
141
142 .PHONY: mostlyclean clean distclean realclean extraclean
143 mostlyclean:
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
147 clean: mostlyclean
148         -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
149         rm -f *.o core *.dvi
150 distclean: clean
151         -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done
152 realclean: distclean
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
156         -rm -f *~ \#*