]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/mudela-rules.make
release: 1.2.13
[lilypond.git] / make / mudela-rules.make
index 14244c63ddf3badce605fcff5af6553f521eb9c7..fa170d169806b6292e9930ef69e7897dd82a38fa 100644 (file)
@@ -1,9 +1,13 @@
 # Mudela_rules.make
 
-.SUFFIXES: .doc .dvi .mudtex
-
+.SUFFIXES: .doc .dvi .mudtex .tely .texi
 
+SUBST_TEXI_DEPS=sed 's! \.\./! !g' < $(basename $@).dep > $(outdir)/temp.dep ;         mv $(outdir)/temp.dep $(basename $@).dep 
 
 $(outdir)/%.latex: %.doc
-       $(PYTHON) $(depth)/scripts/mudela-book.py --outdir=$(outdir)/ --outname=$(notdir $(basename $@)) $<
+       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)