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