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