]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/texinfo-rules.make
release: 1.3.120
[lilypond.git] / stepmake / stepmake / texinfo-rules.make
index 032d3a4a380d3576acff6b7f9bc69a116e2cb763..bec07af2d41bf67ae240672530f4d8a8ed41f512 100644 (file)
@@ -3,10 +3,10 @@
 .SUFFIXES: .html .info .texi .texinfo
 
 $(outdir)/%.info: $(outdir)/%.texi
-       -$(MAKEINFO) --force --output=$@ $<
+       -$(MAKEINFO) --force -I $(outdir) --output=$@ $<
 
 $(outdir)/%.html: $(outdir)/%.texi
-       -$(MAKEINFO) --force --output=$@ --html --no-split --no-headers $<
+       -$(MAKEINFO) --force -I $(outdir) --output=$@ --html --no-split --no-headers $<
 # we want footers even if website builds (or is built) partly
        $(footify) $@
 
@@ -16,16 +16,18 @@ $(outdir)/%/%.html: $(outdir)/%.texi
 # 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
+# ugh, --clean removes .. from TEXINPUTS?
+#      cd $(outdir); texi2dvi --batch --clean ../$< 
+       cd $(outdir); texi2dvi --batch ../$< 
 
 $(outdir)/%.txt: $(outdir)/%.texi
-       $(MAKEINFO) -I../  --no-split --no-headers --output $@ $<
+       $(MAKEINFO) --force -I../ -I $(outdir) --no-split --no-headers --output $@ $<
 
 $(outdir)/%.texi: %.texi
+       rm -f $@
        cp $< $@
+       chmod -w $@