2 .SUFFIXES: .html .info .texi .texinfo
4 # "makeinfo --info" MUST be able to read PNGs from CWD for info images
5 # to work, hence $(INFO_IMAGES_DIR) -> $(outdir)/ symlink.
6 # $(outdir)/$(INFO_IMAGES_DIR)/*.png symlinks are only needed to view
7 # out-www/*.info with Emacs -- HTML docs no longer need these
8 # symlinks, see replace_symlinks_urls in
9 # buildscripts/add_html_footer.py.
11 ifneq ($(INFO_IMAGES_DIR),)
13 # make dereferences symlinks, and $(INFO_IMAGES_DIR) is a symlink
14 # to $(outdir), so we can't use directly $(INFO_IMAGES_DIR) as a
15 # prerequisite, otherwise %.info are always outdated (because older
16 # than $(outdir), hence this .dep file
18 $(outdir)/%.info-images-dir.dep: $(outdir)/%.texi
22 find $(outdir)/$*/ -name '*'.png | xargs rm -f
23 (cd $(outdir)/$*/ ; ln -sf ../*.png . )
28 $(outdir)/.info-images-dir.dep:
33 $(outdir)/%.info: $(outdir)/%.texi $(outdir)/$(INFO_IMAGES_DIR).info-images-dir.dep
34 $(MAKEINFO) -I$(outdir) --output=$@ $<
36 $(outdir)/%-big-page.html: $(outdir)/%.texi
37 $(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split -D bigpage --no-headers $<
39 $(outdir)/%.html: $(outdir)/%.texi
40 $(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $<
42 $(outdir)/%.html.omf: %.texi
43 $(call GENERATE_OMF,html)
45 $(outdir)/%.pdf.omf: %.texi
46 $(call GENERATE_OMF,pdf)
48 $(outdir)/%.ps.gz.omf: %.texi
49 $(call GENERATE_OMF,ps.gz)
51 $(outdir)/%/index.html: $(outdir)/%.texi
53 $(MAKEINFO) -I $(outdir) --output=$(dir $@) --css-include=$(top-src-dir)/Documentation/texinfo.css --html $<
55 $(outdir)/%.pdf: $(outdir)/%.texi
56 cd $(outdir); texi2pdf $(TEXI2PDF_FLAGS) --batch $(TEXINFO_PAPERSIZE_OPTION) $(<F)
58 $(outdir)/%.txt: $(outdir)/%.texi
59 $(MAKEINFO) -I $(src-dir) -I $(outdir) --no-split --no-headers --output $@ $<
61 $(outdir)/%.texi: %.texi