Mercurial > hg > xemacs-beta
comparison man/Makefile @ 677:83a5b1a6e62c
[xemacs-hg @ 2001-11-27 19:00:29 by adrian]
[PATCH RECOMMEND 21.5] xemacs-21.5: man/Makefile to produce html documents <elmmmq3t.fsf@mailto.t-online.de>
author | adrian |
---|---|
date | Tue, 27 Nov 2001 19:00:29 +0000 |
parents | abe6d1db359e |
children | b05e2a249757 |
comparison
equal
deleted
inserted
replaced
676:5a9f0fc2b3dc | 677:83a5b1a6e62c |
---|---|
20 # Boston, MA 02111-1307, USA. | 20 # Boston, MA 02111-1307, USA. |
21 | 21 |
22 SHELL = /bin/sh | 22 SHELL = /bin/sh |
23 MAKEINFO = makeinfo | 23 MAKEINFO = makeinfo |
24 TEXI2DVI = texi2dvi | 24 TEXI2DVI = texi2dvi |
25 TEXI2HTML = texi2html -verbose -split chapter | |
26 | |
25 RM = rm -f | 27 RM = rm -f |
26 | 28 |
27 .SUFFIXES: | 29 .SUFFIXES: |
28 .SUFFIXES: .info .texi .dvi | 30 .SUFFIXES: .html .info .texi .dvi |
29 | 31 |
30 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)' | 32 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)' |
31 | 33 |
32 all : info | 34 all : info |
33 | 35 |
34 # Ughhh! The things we do to have portable makefiles... | 36 # Ughhh! The things we do to have portable makefiles... |
35 | 37 |
36 INFODIR = ../info | 38 INFODIR = ../info |
39 HTMLDIR = ../html | |
37 | 40 |
38 info_files = \ | 41 info_files = \ |
39 $(INFODIR)/cl.info \ | 42 $(INFODIR)/cl.info \ |
40 $(INFODIR)/custom.info \ | 43 $(INFODIR)/custom.info \ |
41 $(INFODIR)/emodules.info \ | 44 $(INFODIR)/emodules.info \ |
49 $(INFODIR)/termcap.info \ | 52 $(INFODIR)/termcap.info \ |
50 $(INFODIR)/texinfo.info \ | 53 $(INFODIR)/texinfo.info \ |
51 $(INFODIR)/widget.info \ | 54 $(INFODIR)/widget.info \ |
52 $(INFODIR)/xemacs.info \ | 55 $(INFODIR)/xemacs.info \ |
53 $(INFODIR)/xemacs-faq.info | 56 $(INFODIR)/xemacs-faq.info |
57 | |
58 html_files = \ | |
59 $(HTMLDIR)/cl.html \ | |
60 $(HTMLDIR)/custom.html \ | |
61 $(HTMLDIR)/emodules.html \ | |
62 $(HTMLDIR)/external-widget.html \ | |
63 $(HTMLDIR)/info.html \ | |
64 $(HTMLDIR)/lispref.html \ | |
65 $(HTMLDIR)/internals.html \ | |
66 $(HTMLDIR)/new-users-guide.html \ | |
67 $(HTMLDIR)/standards.html \ | |
68 $(HTMLDIR)/term.html \ | |
69 $(HTMLDIR)/termcap.html \ | |
70 $(HTMLDIR)/texinfo.html \ | |
71 $(HTMLDIR)/widget.html \ | |
72 $(HTMLDIR)/xemacs.html \ | |
73 $(HTMLDIR)/xemacs-faq.html | |
54 | 74 |
55 dvi_files = \ | 75 dvi_files = \ |
56 cl.dvi \ | 76 cl.dvi \ |
57 custom.dvi \ | 77 custom.dvi \ |
58 emodules.dvi \ | 78 emodules.dvi \ |
261 new-users-guide.info : $(INFODIR)/new-users-guide.info | 281 new-users-guide.info : $(INFODIR)/new-users-guide.info |
262 | 282 |
263 .PHONY : xemacs lispref internals new-users-guide info dvi | 283 .PHONY : xemacs lispref internals new-users-guide info dvi |
264 | 284 |
265 info : $(info_files) | 285 info : $(info_files) |
286 html : $(html_files) | |
266 | 287 |
267 # tm: FRC.tm | 288 # tm: FRC.tm |
268 # cd ./tm && $(RECURSIVE_MAKE) | 289 # cd ./tm && $(RECURSIVE_MAKE) |
269 # gnats: FRC.gnats | 290 # gnats: FRC.gnats |
270 # cd ./gnats && $(RECURSIVE_MAKE) | 291 # cd ./gnats && $(RECURSIVE_MAKE) |
297 $(RM) core *.dvi | 318 $(RM) core *.dvi |
298 distclean: clean | 319 distclean: clean |
299 realclean: distclean | 320 realclean: distclean |
300 extraclean: distclean | 321 extraclean: distclean |
301 $(RM) *~ \#* */*~ */\#* | 322 $(RM) *~ \#* */*~ */\#* |
323 | |
324 ############################################################################ | |
325 | |
326 $(HTMLDIR)/cl.html : cl.texi | |
327 $(TEXI2HTML) -subdir $(HTMLDIR) cl.texi | |
328 | |
329 $(HTMLDIR)/custom.html : custom.texi | |
330 $(TEXI2HTML) -subdir $(HTMLDIR) custom.texi | |
331 | |
332 $(HTMLDIR)/emodules.html : emodules.texi | |
333 $(TEXI2HTML) -subdir $(HTMLDIR) emodules.texi | |
334 | |
335 $(HTMLDIR)/external-widget.html : external-widget.texi | |
336 $(TEXI2HTML) -subdir $(HTMLDIR) external-widget.texi | |
337 | |
338 $(HTMLDIR)/info.html : info.texi | |
339 $(TEXI2HTML) -subdir $(HTMLDIR) info.texi | |
340 | |
341 $(HTMLDIR)/standards.html : standards.texi | |
342 $(TEXI2HTML) -subdir $(HTMLDIR) standards.texi | |
343 | |
344 $(HTMLDIR)/term.html : term.texi | |
345 $(TEXI2HTML) -subdir $(HTMLDIR) term.texi | |
346 | |
347 $(HTMLDIR)/termcap.html : termcap.texi | |
348 $(TEXI2HTML) -subdir $(HTMLDIR) termcap.texi | |
349 | |
350 $(HTMLDIR)/texinfo.html : texinfo.texi | |
351 $(TEXI2HTML) -subdir $(HTMLDIR) texinfo.texi | |
352 | |
353 $(HTMLDIR)/widget.html : widget.texi | |
354 $(TEXI2HTML) -subdir $(HTMLDIR) widget.texi | |
355 | |
356 $(HTMLDIR)/xemacs-faq.html : xemacs-faq.texi | |
357 $(TEXI2HTML) -top_file xemacs-faq_1.html -subdir $(HTMLDIR) xemacs-faq.texi | |
358 | |
359 # Manuals with their own subdirectory | |
360 $(HTMLDIR)/xemacs.html : $(xemacs-srcs) | |
361 $(TEXI2HTML) -subdir $(HTMLDIR) xemacs/xemacs.texi | |
362 | |
363 $(HTMLDIR)/lispref.html : $(lispref-srcs) | |
364 $(TEXI2HTML) -subdir $(HTMLDIR) lispref/lispref.texi | |
365 | |
366 $(HTMLDIR)/internals.html : $(internals-srcs) | |
367 $(TEXI2HTML) -subdir $(HTMLDIR) internals/internals.texi | |
368 | |
369 $(HTMLDIR)/new-users-guide.html : $(new-users-guide-srcs) | |
370 $(TEXI2HTML) -subdir $(HTMLDIR) new-users-guide/new-users-guide.texi | |
371 | |
372 # $(HTMLDIR)/w3.html : w3.texi | |
373 # $(TEXI2HTML) -subdir $(HTMLDIR) w3.texi | |
374 | |
375 # EMACS = ../src/xemacs | |
376 # EMACSFLAGS = -batch -q -no-site-file | |
377 | |
378 # $(HTMLDIR)/vm.html : vm.texi | |
379 # -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \ | |
380 # -f texinfo-format-buffer -f save-buffer | |
381 # -mv vm.html* $(HTMLDIR)/. | |
382 | |
383 # special = # $(HTMLDIR)/vm.html $(HTMLDIR)/texinfo.html | |
384 | |
385 xemacs : $(HTMLDIR)/xemacs.html | |
386 lispref : $(HTMLDIR)/lispref.html | |
387 internals : $(HTMLDIR)/internals.html | |
388 new-users-guide.html : $(HTMLDIR)/new-users-guide.html | |
389 | |
390 html : $(html_files) |