]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/texinfo-rules.make
* stepmake/stepmake/omf-targets.make (omf-local-install): bugfixes
[lilypond.git] / stepmake / stepmake / texinfo-rules.make
index bec07af2d41bf67ae240672530f4d8a8ed41f512..5cfa7f8253182d77223435d56257b97075970491 100644 (file)
@@ -1,28 +1,34 @@
-# Texinfo_rules.make
 
 .SUFFIXES: .html .info .texi .texinfo
 
 $(outdir)/%.info: $(outdir)/%.texi
-       -$(MAKEINFO) --force -I $(outdir) --output=$@ $<
+       $(MAKEINFO) -I $(outdir) --output=$@ $<
 
 $(outdir)/%.html: $(outdir)/%.texi
-       -$(MAKEINFO) --force -I $(outdir) --output=$@ --html --no-split --no-headers $<
+       $(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)/out-www/$(notdir $(basename $@))  --version $(TOPLEVEL_VERSION) $< > $@
+$(outdir)/%.pdf.omf: $(outdir)/%.texi
+       $(GENERATE_OMF) --format pdf --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(notdir $(basename $@))  --version $(TOPLEVEL_VERSION) $< > $@
+
+$(outdir)/%.ps.gz.omf: $(outdir)/%.texi
+       $(GENERATE_OMF) --format ps.gz --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(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
-# ugh, --clean removes .. from TEXINPUTS?
-#      cd $(outdir); texi2dvi --batch --clean ../$< 
-       cd $(outdir); texi2dvi --batch ../$< 
+       cd $(outdir); texi2dvi --batch $(<F)
 
 $(outdir)/%.txt: $(outdir)/%.texi
-       $(MAKEINFO) --force -I../ -I $(outdir) --no-split --no-headers --output $@ $<
+       $(MAKEINFO) -I $(pwd) -I $(outdir) --no-split --no-headers --output $@ $<
 
 $(outdir)/%.texi: %.texi
        rm -f $@