X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=make%2Fmudela-rules.make;h=fa170d169806b6292e9930ef69e7897dd82a38fa;hb=0cf97b5cdceecbba937f43ac827f4065aad5001e;hp=f2e39d714fa6ee8aee05e95decc80c12f7c6011c;hpb=35b22a3ae58b3b8694ce65e374041643ff124b70;p=lilypond.git diff --git a/make/mudela-rules.make b/make/mudela-rules.make index f2e39d714f..fa170d1698 100644 --- a/make/mudela-rules.make +++ b/make/mudela-rules.make @@ -1,11 +1,13 @@ # Mudela_rules.make -.SUFFIXES: .doc .dvi .mudtex +.SUFFIXES: .doc .dvi .mudtex .tely .texi -$(outdir)/%.dvi: $(outdir)/%.mudtex - latex '\nonstopmode \input $<' - mv $(notdir $@) $(outdir) +SUBST_TEXI_DEPS=sed 's! \.\./! !g' < $(basename $@).dep > $(outdir)/temp.dep ; mv $(outdir)/temp.dep $(basename $@).dep -$(outdir)/%.mudtex: %.doc - $(PYTHON) $(depth)/$(scripts)/mudela-book.py --outdir=$(outdir)/ --outname=$(notdir $@) $< +$(outdir)/%.latex: %.doc + cd $(outdir); $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies --dep-prefix=$(outdir)/ ../$< + $(SUBST_TEXI_DEPS) +$(outdir)/%.texi: %.tely + cd $(outdir); $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies --dep-prefix=$(outdir)/ --format=texi ../$< + $(SUBST_TEXI_DEPS)