Mercurial > hg > xemacs-beta
comparison man/Makefile @ 193:f53b5ca2e663 r20-3b23
Import from CVS: tag r20-3b23
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:58:30 +0200 |
parents | 9ad43877534d |
children | eb5470882647 |
comparison
equal
deleted
inserted
replaced
192:9d35321dd38c | 193:f53b5ca2e663 |
---|---|
21 | 21 |
22 # Avoid trouble on systems where the "SHELL" variable might be | 22 # Avoid trouble on systems where the "SHELL" variable might be |
23 # inherited from the environment. | 23 # inherited from the environment. |
24 SHELL = /bin/sh | 24 SHELL = /bin/sh |
25 | 25 |
26 EMACS = xemacs | 26 EMACS = ../src/xemacs |
27 EMACSFLAGS = -batch -q -no-site-file | 27 EMACSFLAGS = -batch -q -no-site-file |
28 | 28 |
29 # NOTE: You *must* have makeinfo-1.68 or later to rebuild the | 29 # NOTE: You *must* have makeinfo-1.68 or later to rebuild the |
30 # info tree. | 30 # info tree. |
31 MAKEINFO = makeinfo | 31 MAKEINFO = makeinfo |
32 TEXI2DVI = texi2dvi | |
32 | 33 |
34 .SUFFIXES: | |
33 .SUFFIXES: .info .texi .dvi | 35 .SUFFIXES: .info .texi .dvi |
36 | |
37 RECURSIVE_MAKE = $(MAKE) $(MFLAGS) MAKEINFO='$(MAKEINFO)' TEXI2DVI='$(TEXI2DVI)' | |
34 | 38 |
35 # Subdirectories to make recursively. | 39 # Subdirectories to make recursively. |
36 SUBDIR = xemacs lispref new-users-guide internals tm gnats | 40 SUBDIR = xemacs lispref new-users-guide internals tm gnats |
37 | 41 |
38 ../info/%.info : %.texi | 42 ../info/%.info : %.texi |
49 | 53 |
50 special = # ../info/w3.info ../info/vm.info ../info/texinfo.info | 54 special = # ../info/w3.info ../info/vm.info ../info/texinfo.info |
51 | 55 |
52 all : info | 56 all : info |
53 info : $(info) $(special) | 57 info : $(info) $(special) |
54 -for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done | 58 -for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done |
55 | 59 |
56 xemacs: FORCE | 60 xemacs: FRC.xemacs |
57 -cd $@ && $(MAKE) $(MFLAGS) | 61 -cd $@ && $(RECURSIVE_MAKE) |
58 lispref: FORCE | 62 lispref: FRC.lispref |
59 -cd $@ && $(MAKE) $(MFLAGS) | 63 -cd $@ && $(RECURSIVE_MAKE) |
60 new-users-guide: FORCE | 64 new-users-guide: FRC.new-users-guide |
61 -cd $@ && $(MAKE) $(MFLAGS) | 65 -cd $@ && $(RECURSIVE_MAKE) |
62 internals: FORCE | 66 internals: FRC.internals |
63 -cd $@ && $(MAKE) $(MFLAGS) | 67 -cd $@ && $(RECURSIVE_MAKE) |
64 tm: FORCE | 68 tm: FRC.tm |
65 -cd $@ && $(MAKE) $(MFLAGS) | 69 -cd $@ && $(RECURSIVE_MAKE) |
66 auctex: FORCE | 70 gnats: FRC.gnats |
67 -cd $@ && $(MAKE) $(MFLAGS) | 71 -cd $@ && $(RECURSIVE_MAKE) |
68 FORCE : | 72 FRC.xemacs FRC.lispref FRC.new-users-guide FRC.internals FRC.tm FRC.gnats: |
69 | 73 |
70 ../info/w3.info : w3.texi | 74 ../info/w3.info : w3.texi |
71 -$(MAKEINFO) w3.texi -o ../info/w3.info | 75 -$(MAKEINFO) w3.texi -o ../info/w3.info |
72 | 76 |
73 ../info/texinfo.info : texinfo.texi | 77 ../info/texinfo.info : texinfo.texi |
77 ../info/vm.info : vm.texi | 81 ../info/vm.info : vm.texi |
78 -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \ | 82 -$(EMACS) $(EMACSFLAGS) -insert vm.texi -l texinfmt \ |
79 -f texinfo-format-buffer -f save-buffer | 83 -f texinfo-format-buffer -f save-buffer |
80 -mv vm.info* ../info | 84 -mv vm.info* ../info |
81 | 85 |
82 PERL = perl | |
83 TEXI2DVI = texi2dvi | |
84 | |
85 texinfo.dvi: texinfo.texi | 86 texinfo.dvi: texinfo.texi |
86 $(TEXI2DVI) $< | 87 $(TEXI2DVI) $< |
87 .texi.dvi: | 88 .texi.dvi: |
88 $(TEXI2DVI) $< | 89 $(TEXI2DVI) $< |
89 | 90 |
90 dvi : $(dvi) FORCE | 91 .PHONY: dvi |
91 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done | 92 dvi : $(dvi) |
93 for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done | |
92 | 94 |
93 .PHONY: mostlyclean clean distclean realclean extraclean | 95 .PHONY: mostlyclean clean distclean realclean extraclean |
94 mostlyclean: | 96 mostlyclean: |
95 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done | 97 for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done |
96 rm -f *.toc *.aux *.log \ | 98 rm -f *.toc *.aux *.log \ |
97 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps | 99 *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.pgs *.vr *.vrs *.tp *.tps |
98 clean: mostlyclean | 100 clean: mostlyclean |
99 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done | 101 for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done |
100 rm -f *.o core *.dvi | 102 rm -f *.o core *.dvi |
101 distclean: clean | 103 distclean: clean |
102 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done | 104 for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done |
103 realclean: distclean | 105 realclean: distclean |
104 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done | 106 for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done |
105 extraclean: distclean | 107 extraclean: distclean |
106 for d in $(SUBDIR) ; do (cd $${d} && $(MAKE) $(MFLAGS) $@) ; done | 108 for d in $(SUBDIR) ; do (cd $${d} && $(RECURSIVE_MAKE) $@) ; done |
107 -rm -f *~ \#* | 109 -rm -f *~ \#* |