X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=stepmake%2Fstepmake%2Ftexinfo-rules.make;h=c37356207988e2de87157ad08f13d22a70e23872;hb=ece2e45d587f63565e81af44e1937ebe1f5e47a8;hp=a1f223b4c42b6ff1cfd6c379b5973793133972cb;hpb=a41bc3e06fca46daa875419b5dc00dd958e1fde0;p=lilypond.git diff --git a/stepmake/stepmake/texinfo-rules.make b/stepmake/stepmake/texinfo-rules.make index a1f223b4c4..c373562079 100644 --- a/stepmake/stepmake/texinfo-rules.make +++ b/stepmake/stepmake/texinfo-rules.make @@ -1,41 +1,38 @@ -# Texinfo_rules.make - -.SUFFIXES: .1 .html .texinfo - -texi2man = $(step-bindir)/out/texi2man $< $@ -texi2html =\ - rm -f $@.urg;\ - cat $< | sed "s!@include.*!!" > $@.urg;\ - $(TEXI2HTML) $@.urg;\ - rm -f $@.urg;\ - mv $(@F).urg.html $@;\ - rm -f $(@F:%.html=%.html.urg_toc.html);\ - add-URLs $@ - -$(outdir)/%.1: %.texinfo - $(texi2man) - -# $(outdir)/%.info: %.texinfo -# $(MAKEINFO) -o $@ $< - -$(outdir)/%.info: $(outdir)/%.texinfo - $(MAKEINFO) -o $@ $< - -# $(outdir)/%.html: %.texinfo -# $(texi2html) -# add-html-footer --index $(depth)/../index.html $@ - -# texi2html is as broken as pod2html 5004 :-) -# we'll have to use pod2html 5003 for now. -# don't burn your .pod sources! -# -$(outdir)/%.html: $(outdir)/%.texinfo - $(texi2html) - $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index $(depth)/../index.html $@ - -$(outdir)/%.texinfo: %.texinfo + +.SUFFIXES: .html .info .texi .texinfo + +$(outdir)/%.info: $(outdir)/%.texi +# makeinfo MUST have PNGs in cwd for info images to work + $(MAKEINFO) -I$(outdir) --output=$@ $< + +$(outdir)/%-big-page.html: $(outdir)/%.texi + $(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split -D bigpage --no-headers $< + +$(outdir)/%.html: $(outdir)/%.texi + $(MAKEINFO) -I $(outdir) --output=$@ --css-include=$(top-src-dir)/Documentation/texinfo.css --html --no-split --no-headers $< + +$(outdir)/%.html.omf: %.texi + $(call GENERATE_OMF,html) + +$(outdir)/%.pdf.omf: %.texi + $(call GENERATE_OMF,pdf) + +$(outdir)/%.ps.gz.omf: %.texi + $(call GENERATE_OMF,ps.gz) + +$(outdir)/%/index.html: $(outdir)/%.texi + mkdir -p $(dir $@) + $(MAKEINFO) -I $(outdir) --output=$(dir $@) --css-include=$(top-src-dir)/Documentation/texinfo.css --html $< + +$(outdir)/%.pdf: $(outdir)/%.texi + cd $(outdir); texi2pdf $(TEXI2PDF_FLAGS) --batch $(TEXINFO_PAPERSIZE_OPTION) $(