Mercurial > hg > xemacs-beta
comparison man/Makefile @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children | da8ed4261e83 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
17 # You should have received a copy of the GNU General Public License | 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 | 18 # along with XEmacs; see the file COPYING. If not, write to |
19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
20 # Boston, MA 02111-1307, USA. | 20 # Boston, MA 02111-1307, USA. |
21 | 21 |
22 SHELL = /bin/sh | 22 # Avoid trouble on systems where the "SHELL" variable might be |
23 # inherited from the environment. | |
24 SHELL = /bin/sh | |
25 | |
26 EMACS = ../src/xemacs | |
27 EMACSFLAGS = -batch -q -no-site-file | |
28 | |
29 # NOTE: You *must* have makeinfo-1.68 or later to rebuild the | |
30 # info tree. | |
23 MAKEINFO = makeinfo | 31 MAKEINFO = makeinfo |
24 TEXI2DVI = texi2dvi | 32 TEXI2DVI = texi2dvi |
25 RM = rm -f | |
26 | 33 |
27 .SUFFIXES: | 34 .SUFFIXES: |
28 .SUFFIXES: .info .texi .dvi | 35 .SUFFIXES: .info .texi .dvi |
29 | 36 |
30 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)' | 37 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)' |
31 | |
32 all : info | |
33 | 38 |
34 # Ughhh! The things we do to have portable makefiles... | 39 # Ughhh! The things we do to have portable makefiles... |
35 | 40 |
36 INFODIR = ../info | 41 INFODIR = ../info |
37 | 42 |
38 info_files = \ | 43 info_files = \ |
39 $(INFODIR)/cl.info \ | 44 $(INFODIR)/cl.info \ |
40 $(INFODIR)/custom.info \ | 45 $(INFODIR)/custom.info \ |
41 $(INFODIR)/emodules.info \ | |
42 $(INFODIR)/external-widget.info \ | 46 $(INFODIR)/external-widget.info \ |
43 $(INFODIR)/info.info \ | 47 $(INFODIR)/info.info \ |
44 $(INFODIR)/lispref.info \ | |
45 $(INFODIR)/internals.info \ | |
46 $(INFODIR)/new-users-guide.info \ | |
47 $(INFODIR)/standards.info \ | 48 $(INFODIR)/standards.info \ |
48 $(INFODIR)/term.info \ | 49 $(INFODIR)/term.info \ |
49 $(INFODIR)/termcap.info \ | 50 $(INFODIR)/termcap.info \ |
50 $(INFODIR)/texinfo.info \ | 51 $(INFODIR)/texinfo.info \ |
51 $(INFODIR)/widget.info \ | 52 $(INFODIR)/widget.info \ |
52 $(INFODIR)/xemacs.info \ | |
53 $(INFODIR)/xemacs-faq.info | 53 $(INFODIR)/xemacs-faq.info |
54 | 54 |
55 dvi_files = \ | 55 dvi_files = \ |
56 cl.dvi \ | 56 cl.dvi \ |
57 custom.dvi \ | 57 custom.dvi \ |
58 emodules.dvi \ | |
59 external-widget.dvi \ | 58 external-widget.dvi \ |
60 info.dvi \ | 59 info.dvi \ |
61 lispref.dvi \ | |
62 internals.dvi \ | |
63 new-users-guide.dvi \ | |
64 standards.dvi \ | 60 standards.dvi \ |
65 term.dvi \ | 61 term.dvi \ |
66 termcap.dvi \ | 62 termcap.dvi \ |
67 texinfo.dvi \ | 63 texinfo.dvi \ |
68 widget.dvi \ | 64 widget.dvi \ |
69 xemacs.dvi \ | |
70 xemacs-faq.dvi | 65 xemacs-faq.dvi |
71 | 66 |
72 xemacs-srcs = \ | 67 ../info/cl.info : cl.texi |
73 xemacs/abbrevs.texi \ | 68 -$(MAKEINFO) cl.texi -o ../info/cl.info |
74 xemacs/basic.texi \ | |
75 xemacs/buffers.texi \ | |
76 xemacs/building.texi \ | |
77 xemacs/calendar.texi \ | |
78 xemacs/cmdargs.texi \ | |
79 xemacs/custom.texi \ | |
80 xemacs/display.texi \ | |
81 xemacs/entering.texi \ | |
82 xemacs/files.texi \ | |
83 xemacs/fixit.texi \ | |
84 xemacs/frame.texi \ | |
85 xemacs/glossary.texi \ | |
86 xemacs/gnu.texi \ | |
87 xemacs/help.texi \ | |
88 xemacs/indent.texi \ | |
89 xemacs/keystrokes.texi \ | |
90 xemacs/killing.texi \ | |
91 xemacs/m-x.texi \ | |
92 xemacs/major.texi \ | |
93 xemacs/mark.texi \ | |
94 xemacs/menus.texi \ | |
95 xemacs/mini.texi \ | |
96 xemacs/misc.texi \ | |
97 xemacs/mouse.texi \ | |
98 xemacs/mule.texi \ | |
99 xemacs/new.texi \ | |
100 xemacs/packages.texi \ | |
101 xemacs/picture.texi \ | |
102 xemacs/programs.texi \ | |
103 xemacs/reading.texi \ | |
104 xemacs/regs.texi \ | |
105 xemacs/search.texi \ | |
106 xemacs/sending.texi \ | |
107 xemacs/startup.texi \ | |
108 xemacs/text.texi \ | |
109 xemacs/trouble.texi \ | |
110 xemacs/undo.texi \ | |
111 xemacs/windows.texi \ | |
112 xemacs/xemacs.texi | |
113 | 69 |
114 lispref-srcs = \ | 70 ../info/custom.info : custom.texi |
115 lispref/abbrevs.texi \ | 71 -$(MAKEINFO) custom.texi -o ../info/custom.info |
116 lispref/annotations.texi \ | |
117 lispref/back.texi \ | |
118 lispref/backups.texi \ | |
119 lispref/buffers.texi \ | |
120 lispref/building.texi \ | |
121 lispref/commands.texi \ | |
122 lispref/compile.texi \ | |
123 lispref/consoles-devices.texi \ | |
124 lispref/control.texi \ | |
125 lispref/customize.texi \ | |
126 lispref/databases.texi \ | |
127 lispref/debugging.texi \ | |
128 lispref/dialog.texi \ | |
129 lispref/display.texi \ | |
130 lispref/dragndrop.texi \ | |
131 lispref/edebug-inc.texi \ | |
132 lispref/edebug.texi \ | |
133 lispref/errors.texi \ | |
134 lispref/eval.texi \ | |
135 lispref/extents.texi \ | |
136 lispref/faces.texi \ | |
137 lispref/files.texi \ | |
138 lispref/frames.texi \ | |
139 lispref/functions.texi \ | |
140 lispref/glyphs.texi \ | |
141 lispref/hash-tables.texi \ | |
142 lispref/help.texi \ | |
143 lispref/hooks.texi \ | |
144 lispref/index.texi \ | |
145 lispref/internationalization.texi \ | |
146 lispref/intro.texi \ | |
147 lispref/keymaps.texi \ | |
148 lispref/ldap.texi \ | |
149 lispref/lispref.texi \ | |
150 lispref/lists.texi \ | |
151 lispref/loading.texi \ | |
152 lispref/locals.texi \ | |
153 lispref/macros.texi \ | |
154 lispref/maps.texi \ | |
155 lispref/markers.texi \ | |
156 lispref/menus.texi \ | |
157 lispref/minibuf.texi \ | |
158 lispref/modes.texi \ | |
159 lispref/mouse.texi \ | |
160 lispref/mule.texi \ | |
161 lispref/numbers.texi \ | |
162 lispref/objects.texi \ | |
163 lispref/os.texi \ | |
164 lispref/positions.texi \ | |
165 lispref/processes.texi \ | |
166 lispref/range-tables.texi \ | |
167 lispref/scrollbars.texi \ | |
168 lispref/searching.texi \ | |
169 lispref/sequences.texi \ | |
170 lispref/specifiers.texi \ | |
171 lispref/streams.texi \ | |
172 lispref/strings.texi \ | |
173 lispref/symbols.texi \ | |
174 lispref/syntax.texi \ | |
175 lispref/text.texi \ | |
176 lispref/tips.texi \ | |
177 lispref/toolbar.texi \ | |
178 lispref/tooltalk.texi \ | |
179 lispref/variables.texi \ | |
180 lispref/windows.texi \ | |
181 lispref/x-windows.texi | |
182 | 72 |
183 internals-srcs = \ | 73 ../info/external-widget.info : external-widget.texi |
184 internals/internals.texi | 74 -$(MAKEINFO) external-widget.texi -o ../info/external-widget.info |
185 | 75 |
186 new-users-guide-srcs = \ | 76 ../info/info.info : info.texi |
187 new-users-guide/custom1.texi \ | 77 -$(MAKEINFO) info.texi -o ../info/info.info |
188 new-users-guide/custom2.texi \ | |
189 new-users-guide/edit.texi \ | |
190 new-users-guide/enter.texi \ | |
191 new-users-guide/files.texi \ | |
192 new-users-guide/help.texi \ | |
193 new-users-guide/modes.texi \ | |
194 new-users-guide/new-users-guide.texi \ | |
195 new-users-guide/region.texi \ | |
196 new-users-guide/search.texi \ | |
197 new-users-guide/xmenu.texi | |
198 | 78 |
199 $(INFODIR)/cl.info : cl.texi | 79 ../info/standards.info : standards.texi |
200 $(MAKEINFO) -o $(INFODIR)/cl.info cl.texi | 80 -$(MAKEINFO) standards.texi -o ../info/standards.info |
201 | 81 |
202 $(INFODIR)/custom.info : custom.texi | 82 ../info/term.info : term.texi |
203 $(MAKEINFO) -o $(INFODIR)/custom.info custom.texi | 83 -$(MAKEINFO) term.texi -o ../info/term.info |
204 | 84 |
205 $(INFODIR)/emodules.info : emodules.texi | 85 ../info/termcap.info : termcap.texi |
206 $(MAKEINFO) -o $(INFODIR)/emodules.info emodules.texi | 86 -$(MAKEINFO) termcap.texi -o ../info/termcap.info |
207 | 87 |
208 $(INFODIR)/external-widget.info : external-widget.texi | 88 ../info/texinfo.info : texinfo.texi |
209 $(MAKEINFO) -o $(INFODIR)/external-widget.info external-widget.texi | 89 -$(MAKEINFO) texinfo.texi -o ../info/texinfo.info |
210 | 90 |
211 $(INFODIR)/info.info : info.texi | 91 ../info/widget.info : widget.texi |
212 $(MAKEINFO) -o $(INFODIR)/info.info info.texi | 92 -$(MAKEINFO) widget.texi -o ../info/widget.info |
213 | 93 |
214 $(INFODIR)/standards.info : standards.texi | 94 ../info/xemacs-faq.info : xemacs-faq.texi |
215 $(MAKEINFO) -o $(INFODIR)/standards.info standards.texi | 95 -$(MAKEINFO) xemacs-faq.texi -o ../info/xemacs-faq.info |
216 | 96 |
217 $(INFODIR)/term.info : term.texi | |
218 $(MAKEINFO) -o $(INFODIR)/term.info term.texi | |
219 | 97 |
220 $(INFODIR)/termcap.info : termcap.texi | 98 # ../info/w3.info : w3.texi |
221 $(MAKEINFO) -o $(INFODIR)/termcap.info termcap.texi | 99 # -$(MAKEINFO) w3.texi -o ../info/w3.info |
222 | 100 |
223 $(INFODIR)/texinfo.info : texinfo.texi | 101 # ../info/vm.info : vm.texi |
224 $(MAKEINFO) -o $(INFODIR)/texinfo.info texinfo.texi | |
225 | |
226 $(INFODIR)/widget.info : widget.texi | |
227 $(MAKEINFO) -o $(INFODIR)/widget.info widget.texi | |
228 | |
229 $(INFODIR)/xemacs-faq.info : xemacs-faq.texi | |
230 $(MAKEINFO) -o $(INFODIR)/xemacs-faq.info xemacs-faq.texi | |
231 | |
232 # Manuals with their own subdirectory | |
233 $(INFODIR)/xemacs.info : $(xemacs-srcs) | |
234 $(MAKEINFO) -P xemacs -o $(INFODIR)/xemacs.info xemacs/xemacs.texi | |
235 | |
236 $(INFODIR)/lispref.info : $(lispref-srcs) | |
237 $(MAKEINFO) -P lispref -o $(INFODIR)/lispref.info lispref/lispref.texi | |
238 | |
239 $(INFODIR)/internals.info : $(internals-srcs) | |
240 $(MAKEINFO) -P internals -o $(INFODIR)/internals.info internals/internals.texi | |
241 | |
242 $(INFODIR)/new-users-guide.info : $(new-users-guide-srcs) | |
243 $(MAKEINFO) -P new-users-guide -o $(INFODIR)/new-users-guide.info new-users-guide/new-users-guide.texi | |
244 | |
245 # $(INFODIR)/w3.info : w3.texi | |
246 # $(MAKEINFO) -o $(INFODIR)/w3.info w3.texi | |
247 | |
248 # EMACS = ../src/xemacs | |
249 # EMACSFLAGS = -batch -q -no-site-file | |
250 | |
251 # $(INFODIR)/vm.info : vm.texi | |
252 # -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \ | 102 # -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \ |
253 # -f texinfo-format-buffer -f save-buffer | 103 # -f texinfo-format-buffer -f save-buffer |
254 # -mv vm.info* $(INFODIR)/. | 104 # -mv vm.info* ../info |
255 | 105 |
256 # special = # $(INFODIR)/vm.info $(INFODIR)/texinfo.info | 106 # special = # ../info/w3.info ../info/vm.info ../info/texinfo.info |
257 | 107 |
258 xemacs : $(INFODIR)/xemacs.info | 108 all: info |
259 lispref : $(INFODIR)/lispref.info | |
260 internals : $(INFODIR)/internals.info | |
261 new-users-guide.info : $(INFODIR)/new-users-guide.info | |
262 | 109 |
263 .PHONY : xemacs lispref internals new-users-guide info dvi | 110 # Subdirectories to make recursively. |
111 SUBDIR = xemacs lispref new-users-guide internals | |
112 .PHONY: $(SUBDIR) | |
264 | 113 |
265 info : $(info_files) | 114 info : $(info_files) |
266 | 115 -for d in $(SUBDIR) ; do (cd ./$$d && $(RECURSIVE_MAKE) $@) ; done |
267 # tm: FRC.tm | |
268 # cd ./tm && $(RECURSIVE_MAKE) | |
269 # gnats: FRC.gnats | |
270 # cd ./gnats && $(RECURSIVE_MAKE) | |
271 # FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats: | |
272 | 116 |
273 .PHONY: info dvi | 117 .PHONY: info dvi |
274 | 118 |
119 xemacs: FRC.xemacs | |
120 -cd ./$@ && $(RECURSIVE_MAKE) | |
121 lispref: FRC.lispref | |
122 -cd ./$@ && $(RECURSIVE_MAKE) | |
123 new-users-guide: FRC.new-users-guide | |
124 -cd ./$@ && $(RECURSIVE_MAKE) | |
125 internals: FRC.internals | |
126 -cd ./$@ && $(RECURSIVE_MAKE) | |
127 # tm: FRC.tm | |
128 # -cd ./$@ && $(RECURSIVE_MAKE) | |
129 # gnats: FRC.gnats | |
130 # -cd ./$@ && $(RECURSIVE_MAKE) | |
131 # FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats: | |
132 FRC.info FRC.dvi FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals: | |
133 | |
134 | |
275 .texi.dvi: | 135 .texi.dvi: |
276 -$(TEXI2DVI) $< | 136 $(TEXI2DVI) $< |
277 | |
278 xemacs.dvi : $(xemacs-srcs) | |
279 $(TEXI2DVI) -I xemacs xemacs/xemacs.texi | |
280 | |
281 lispref.dvi : $(lispref-srcs) | |
282 $(TEXI2DVI) -I lispref lispref/lispref.texi | |
283 | |
284 internals.dvi : $(internals-srcs) | |
285 $(TEXI2DVI) -I internals internals/internals.texi | |
286 | |
287 new-users-guide.dvi : $(new-users-guide-srcs) | |
288 $(TEXI2DVI) -I new-users-guide new-users-guide/new-users-guide.texi | |
289 | 137 |
290 dvi : $(dvi_files) | 138 dvi : $(dvi_files) |
139 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done | |
140 | |
291 | 141 |
292 .PHONY: mostlyclean clean distclean realclean extraclean | 142 .PHONY: mostlyclean clean distclean realclean extraclean |
293 mostlyclean: | 143 mostlyclean: |
294 $(RM) *.toc *.aux *.log *.op *.cp *.cps *.fn *.fns | 144 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done |
295 $(RM) *.ky *.kys *.pg *.pgs *.tp *.tps *.vr *.vrs | 145 rm -f *.toc *.aux *.log *.op \ |
146 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps | |
296 clean: mostlyclean | 147 clean: mostlyclean |
297 $(RM) core *.dvi | 148 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done |
149 rm -f *.o core *.dvi | |
298 distclean: clean | 150 distclean: clean |
151 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done | |
299 realclean: distclean | 152 realclean: distclean |
153 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done | |
300 extraclean: distclean | 154 extraclean: distclean |
301 $(RM) *~ \#* */*~ */\#* | 155 -for d in $(SUBDIR) ; do (cd ./$${d} && $(RECURSIVE_MAKE) $@) ; done |
156 -rm -f *~ \#* |