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