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
|
|
26 .SUFFIXES: .info .texi .dvi
|
|
27
|
|
28 # Subdirectories to make recursively.
|
10
|
29 SUBDIR = xemacs lispref new-users-guide internals tm
|
8
|
30
|
|
31 ../info/%.info : %.texi
|
|
32 makeinfo -o $@ $<
|
|
33
|
|
34 # hyperbole and oo-browser manuals broken - do not TeX properly
|
16
|
35 srcs = ange-ftp cc-mode cl custom dired ediff external-widget forms gnus \
|
10
|
36 hyperbole ilisp info ispell mailcrypt message mh-e oo-browser \
|
8
|
37 pcl-cvs psgml psgml-api rmail standards supercite term \
|
16
|
38 termcap texinfo vhdl-mode viper vm w3 widget xemacs-faq
|
8
|
39
|
|
40 info = $(srcs:%=../info/%.info)
|
|
41 dvi = $(srcs:%=%.dvi)
|
|
42
|
|
43 all : info
|
|
44 info : $(info)
|
|
45 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
46
|
|
47 xemacs: FORCE
|
|
48 cd $@ && $(MAKE) $(MFLAGS)
|
|
49 lispref: FORCE
|
|
50 cd $@ && $(MAKE) $(MFLAGS)
|
|
51 new-users-guide: FORCE
|
|
52 cd $@ && $(MAKE) $(MFLAGS)
|
|
53 internals: FORCE
|
|
54 cd $@ && $(MAKE) $(MFLAGS)
|
|
55 tm: FORCE
|
|
56 cd $@ && $(MAKE) $(MFLAGS)
|
|
57 FORCE :
|
|
58
|
|
59 PERL = perl
|
|
60 TEXI2DVI = texi2dvi
|
|
61
|
|
62 gnus.dvi : gnus.texi
|
|
63 $(PERL) -n -e 'print unless (/\@iflatex/ .. /\@end iflatex/)' gnus.texi > gnus.tmptexi
|
|
64 $(TEXI2DVI) gnus.tmptexi
|
|
65 rm -f gnus.tmptexi
|
|
66
|
|
67 texinfo.dvi: texinfo.texi
|
|
68 $(TEXI2DVI) $<
|
|
69 .texi.dvi:
|
|
70 $(TEXI2DVI) $<
|
|
71
|
|
72 dvi : $(dvi) FORCE
|
|
73 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
74
|
|
75 mostlyclean:
|
|
76 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
77 rm -f *.toc *.aux *.log \
|
|
78 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps
|
|
79 clean: mostlyclean
|
|
80 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
81 rm -f *.o core *.dvi
|
|
82 distclean: clean
|
|
83 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
84 realclean: distclean
|
|
85 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
86 extraclean: distclean
|
|
87 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done
|
|
88 -rm -f *~ \#*
|