]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/texinfo-rules.make
release: 1.3.120
[lilypond.git] / stepmake / stepmake / texinfo-rules.make
index cdda14839a6a9be72a327724e6a64c13dbbf2231..bec07af2d41bf67ae240672530f4d8a8ed41f512 100644 (file)
@@ -3,19 +3,31 @@
 .SUFFIXES: .html .info .texi .texinfo
 
 $(outdir)/%.info: $(outdir)/%.texi
-       makeinfo --output=$@ $<
+       -$(MAKEINFO) --force -I $(outdir) --output=$@ $<
 
-$(outdir)/%.html:      $(outdir)/%.texi
-       -makeinfo --force --output=$@ --html --no-headers $< 
+$(outdir)/%.html: $(outdir)/%.texi
+       -$(MAKEINFO) --force -I $(outdir) --output=$@ --html --no-split --no-headers $<
+# we want footers even if website builds (or is built) partly
+       $(footify) $@
 
-$(outdir)/%.dvi:       $(outdir)/%.texi
-# --clean only in >= 3.12s
-# cd $(outdir); texi2dvi --clean ../$< 
-       cd $(outdir); texi2dvi ../$< 
+# Generic rule not possible?
+$(outdir)/%/%.html: $(outdir)/%.texi
+       -$(MAKEINFO) --force --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 ../$< 
 
 $(outdir)/%.txt: $(outdir)/%.texi
-       $(MAKEINFO) --no-split --no-headers --output $@ $<
+       $(MAKEINFO) --force -I../ -I $(outdir) --no-split --no-headers --output $@ $<
 
 $(outdir)/%.texi: %.texi
+       rm -f $@
        cp $< $@
+       chmod -w $@
+
+