8
|
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
|
193
|
26 EMACS = ../src/xemacs
|
108
|
27 EMACSFLAGS = -batch -q -no-site-file
|
|
28
|
175
|
29 # NOTE: You *must* have makeinfo-1.68 or later to rebuild the
|
118
|
30 # info tree.
|
108
|
31 MAKEINFO = makeinfo
|
193
|
32 TEXI2DVI = texi2dvi
|
108
|
33
|
193
|
34 .SUFFIXES:
|
8
|
35 .SUFFIXES: .info .texi .dvi
|
|
36
|
193
|
37 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)'
|
|
38
|
8
|
39 # Subdirectories to make recursively.
|
219
|
40 SUBDIR = xemacs lispref new-users-guide internals gnats skk
|
8
|
41
|
|
42 ../info/%.info : %.texi
|
108
|
43 -$(MAKEINFO) -o $@ $<
|
8
|
44
|
209
|
45 srcs = cl custom external-widget forms \
|
217
|
46 info \
|
|
47 standards term \
|
|
48 termcap texinfo widget xemacs-faq
|
8
|
49
|
|
50 info = $(srcs:%=../info/%.info)
|
|
51 dvi = $(srcs:%=%.dvi)
|
|
52
|
108
|
53 special = # ../info/w3.info ../info/vm.info ../info/texinfo.info
|
|
54
|
8
|
55 all : info
|
108
|
56 info : $(info) $(special)
|
193
|
57 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done
|
8
|
58
|
193
|
59 xemacs: FRC.xemacs
|
|
60 -cd $@ && $(RECURSIVE_MAKE)
|
|
61 lispref: FRC.lispref
|
|
62 -cd $@ && $(RECURSIVE_MAKE)
|
|
63 new-users-guide: FRC.new-users-guide
|
|
64 -cd $@ && $(RECURSIVE_MAKE)
|
|
65 internals: FRC.internals
|
|
66 -cd $@ && $(RECURSIVE_MAKE)
|
|
67 tm: FRC.tm
|
|
68 -cd $@ && $(RECURSIVE_MAKE)
|
|
69 gnats: FRC.gnats
|
|
70 -cd $@ && $(RECURSIVE_MAKE)
|
|
71 FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats:
|
8
|
72
|
108
|
73 ../info/w3.info : w3.texi
|
118
|
74 -$(MAKEINFO) w3.texi -o ../info/w3.info
|
108
|
75
|
|
76 ../info/texinfo.info : texinfo.texi
|
118
|
77 -$(MAKEINFO) texinfo.texi -o ../info/texinfo.info
|
108
|
78
|
|
79
|
|
80 ../info/vm.info : vm.texi
|
|
81 -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \
|
|
82 -f texinfo-format-buffer -f save-buffer
|
|
83 -mv vm.info* ../info
|
|
84
|
8
|
85 texinfo.dvi: texinfo.texi
|
|
86 $(TEXI2DVI) $<
|
|
87 .texi.dvi:
|
|
88 $(TEXI2DVI) $<
|
|
89
|
193
|
90 .PHONY: dvi
|
|
91 dvi : $(dvi)
|
223
|
92 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done
|
8
|
93
|
173
|
94 .PHONY: mostlyclean clean distclean realclean extraclean
|
8
|
95 mostlyclean:
|
223
|
96 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done
|
8
|
97 rm -f *.toc *.aux *.log \
|
|
98 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps
|
|
99 clean: mostlyclean
|
223
|
100 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done
|
8
|
101 rm -f *.o core *.dvi
|
|
102 distclean: clean
|
223
|
103 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done
|
8
|
104 realclean: distclean
|
223
|
105 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done
|
8
|
106 extraclean: distclean
|
223
|
107 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done
|
8
|
108 -rm -f *~ \#*
|