]> git.donarmstrong.com Git - lilypond.git/blob - make/mudela-rules.make
patch::: 1.3.104.jcn1
[lilypond.git] / make / mudela-rules.make
1 # Mudela_rules.make
2
3 .SUFFIXES: .doc .dvi .mudtex .tely .texi
4
5 SUBST_TEXI_DEPS=sed 's! \.\./! !g' < $(basename $@).dep > $(outdir)/temp.dep ;  mv $(outdir)/temp.dep $(basename $@).dep 
6
7 $(outdir)/%.latex: %.doc
8         LILYPONDPREFIX=$(LILYPONDPREFIX)/..  $(PYTHON) $(script-dir)/mudela-book.py --outdir=$(outdir) -I .. -I $(input-dir)/test/ --dependencies --dep-prefix=$(outdir)/ $< 
9         $(SUBST_TEXI_DEPS)
10
11 # don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
12 # it is not, for --scrdir builds
13 $(outdir)/%.texi: %.tely
14         LILYPONDPREFIX=$(LILYPONDPREFIX)/..  $(PYTHON) $(script-dir)/mudela-book.py --outdir=$(outdir) -I .. -I $(input-dir)/test/ --dependencies --dep-prefix=$(outdir)/ --format=texi $<
15         $(SUBST_TEXI_DEPS)
16
17 # nexi: no-lily texi
18 # for plain info doco: don't run lily
19 $(outdir)/%.nexi: %.tely
20         LILYPONDPREFIX=$(LILYPONDPREFIX)/..  $(PYTHON) $(script-dir)/mudela-book.py --outdir=$(outdir) --no-lily -I .. -I $(input-dir)/test/ --dependencies --dep-prefix=$(outdir)/ --format=texi $<
21         mv $(@D)/$(*F).texi $@
22         $(SUBST_TEXI_DEPS)
23
24 $(outdir)/%.info: $(outdir)/%.nexi
25         -$(MAKEINFO) --force --output=$@ $<