]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/texinfo-rules.make
* Documentation/user/music-glossary.tely: add @omf tags
[lilypond.git] / stepmake / stepmake / texinfo-rules.make
index 2a2dc8d101190c2f8988a0412841fd932c8eb869..1430de5905888d6e7286b435981da0c4fa917691 100644 (file)
@@ -1,31 +1,38 @@
-# Texinfo_rules.make
 
 .SUFFIXES: .html .info .texi .texinfo
 
 $(outdir)/%.info: $(outdir)/%.texi
-       -$(MAKEINFO) --force --output=$@ $<
+       $(MAKEINFO) -I $(outdir) --output=$@ $<
 
 $(outdir)/%.html: $(outdir)/%.texi
-       -$(MAKEINFO) --force --output=$@ --html --no-split $<
+       $(MAKEINFO) -I $(outdir) --output=$@ --html --no-split --no-headers $<
 # we want footers even if website builds (or is built) partly
        $(footify) $@
 
+$(outdir)/%.html.omf: $(outdir)/%.texi
+       $(GENERATE_OMF) --format html --location $(local_package_docdir)/$(current-relative-dir)/$(notdir $(basename $@))  --version $(TOPLEVEL_VERSION) $< > $@
+$(outdir)/%.pdf.omf: $(outdir)/%.texi
+       $(GENERATE_OMF) --format pdf --location $(local_package_docdir)/$(current-relative-dir)/$(notdir $(basename $@))  --version $(TOPLEVEL_VERSION) $< > $@
+
+$(outdir)/%.ps.gz.omf: $(outdir)/%.texi
+       $(GENERATE_OMF) --format ps.gz --location $(local_package_docdir)/$(current-relative-dir)/$(notdir $(basename $@))  --version $(TOPLEVEL_VERSION) $< > $@
+
 # Generic rule not possible?
 $(outdir)/%/%.html: $(outdir)/%.texi
-       -$(MAKEINFO) --force --output=$@ --html $<
+       $(MAKEINFO) --output=$@ --html $<
 # we want footers even if website builds (or is built) partly
        $(deep-footify) $(sort $(wildcard $(outdir)/$(*F)/*.html))
 
-$(outdir)/%.dvi:       $(outdir)/%.texi
-# --clean only in >= 3.12s
-# cd $(outdir); texi2dvi --clean ../$< 
-       cd $(outdir); texi2dvi ../$< 
+$(outdir)/%.dvi: $(outdir)/%.texi
+       cd $(outdir); texi2dvi --batch $(<F)
 
 $(outdir)/%.txt: $(outdir)/%.texi
-       $(MAKEINFO) -I../  --no-split --no-headers --output $@ $<
+       $(MAKEINFO) -I $(pwd) -I $(outdir) --no-split --no-headers --output $@ $<
 
 $(outdir)/%.texi: %.texi
+       rm -f $@
        cp $< $@
+       chmod -w $@