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
|
108
|
26 EMACS = xemacs
|
|
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
|
|
32
|
8
|
33 .SUFFIXES: .info .texi .dvi
|
|
34
|
|
35 # Subdirectories to make recursively.
|
177
|
36 SUBDIR = xemacs lispref new-users-guide internals tm gnats
|
8
|
37
|
|
38 ../info/%.info : %.texi
|
108
|
39 -$(MAKEINFO) -o $@ $<
|
8
|
40
|
177
|
41 srcs = cc-mode cl custom ediff efs external-widget forms \
|
116
|
42 hm--html-mode \
|
177
|
43 hyperbole ilisp info ispell mailcrypt mh-e oo-browser \
|
173
|
44 pcl-cvs ph psgml psgml-api rmail standards supercite term \
|
116
|
45 termcap texinfo vhdl-mode viper vm w3 widget xemacs-faq
|
8
|
46
|
|
47 info = $(srcs:%=../info/%.info)
|
|
48 dvi = $(srcs:%=%.dvi)
|
|
49
|
108
|
50 special = # ../info/w3.info ../info/vm.info ../info/texinfo.info
|
|
51
|
8
|
52 all : info
|
108
|
53 info : $(info) $(special)
|
|
54 -for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
8
|
55
|
|
56 xemacs: FORCE
|
108
|
57 -cd $@ && $(MAKE) $(MFLAGS)
|
8
|
58 lispref: FORCE
|
108
|
59 -cd $@ && $(MAKE) $(MFLAGS)
|
8
|
60 new-users-guide: FORCE
|
108
|
61 -cd $@ && $(MAKE) $(MFLAGS)
|
8
|
62 internals: FORCE
|
108
|
63 -cd $@ && $(MAKE) $(MFLAGS)
|
8
|
64 tm: FORCE
|
108
|
65 -cd $@ && $(MAKE) $(MFLAGS)
|
100
|
66 auctex: FORCE
|
108
|
67 -cd $@ && $(MAKE) $(MFLAGS)
|
8
|
68 FORCE :
|
|
69
|
108
|
70 ../info/w3.info : w3.texi
|
118
|
71 -$(MAKEINFO) w3.texi -o ../info/w3.info
|
108
|
72
|
|
73 ../info/texinfo.info : texinfo.texi
|
118
|
74 -$(MAKEINFO) texinfo.texi -o ../info/texinfo.info
|
108
|
75
|
|
76
|
|
77 ../info/vm.info : vm.texi
|
|
78 -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \
|
|
79 -f texinfo-format-buffer -f save-buffer
|
|
80 -mv vm.info* ../info
|
|
81
|
8
|
82 PERL = perl
|
|
83 TEXI2DVI = texi2dvi
|
|
84
|
|
85 texinfo.dvi: texinfo.texi
|
|
86 $(TEXI2DVI) $<
|
|
87 .texi.dvi:
|
|
88 $(TEXI2DVI) $<
|
|
89
|
|
90 dvi : $(dvi) FORCE
|
|
91 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
92
|
173
|
93 .PHONY: mostlyclean clean distclean realclean extraclean
|
8
|
94 mostlyclean:
|
|
95 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
96 rm -f *.toc *.aux *.log \
|
|
97 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps
|
|
98 clean: mostlyclean
|
|
99 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
100 rm -f *.o core *.dvi
|
|
101 distclean: clean
|
|
102 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
103 realclean: distclean
|
|
104 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
105 extraclean: distclean
|
|
106 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
107 -rm -f *~ \#*
|