]> git.donarmstrong.com Git - lilypond.git/blob - make/mutopia-rules.make
($(outdir)-$(PAPERSIZE)/%.dvi): incude
[lilypond.git] / make / mutopia-rules.make
1
2
3 $(outdir)/%.png: $(outdir)/%.ps
4         gs -sDEVICE=pnggray -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile="$(name-stem)-page%d.png" -r90 -dNOPAUSE $< -c quit
5         -mv $(name-stem)-page*.png $(outdir)/
6         rm -f $@
7         ln -s $(name-stem)-page1.png $@
8
9 $(outdir)/%.ly.txt: %.ly
10         ln -f $< $@
11
12 $(outdir)/%.ly.txt: $(outdir)/%.ly
13         cp -f $< $@
14
15 $(outdir)/%.ly.txt: %.abc
16 #which file to show here -- abc seems more cute?
17         ln -f $< $@
18
19 $(outdir)/%.ly: %.abc
20         $(PYTHON) $(ABC2LY) --strict -o $@ $< 
21
22 $(outdir)/%.dvi: $(outdir)/%.ly
23         $(PYTHON) $(LY2DVI) --output=$@ $<  
24
25 # don't junk intermediate .dvi files.  They're easier to view than
26 # .ps or .png
27 .PRECIOUS: $(outdir)/%.dvi
28
29 $(outdir)/%.dvi: %.ly
30         $(PYTHON) $(LY2DVI) --output=$@ $< 
31
32
33 $(outdir)/%.pdf: $(outdir)/%.dvi
34         dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) -o $@.pdfps $<
35         ps2pdf -sPAPERSIZE=$(DVIPS_PAPERSIZE) $@.pdfps $@
36
37 $(outdir)-$(PAPERSIZE)/%.dvi: %.ly
38         $(PYTHON) $(LY2DVI) --output=$@ --set=papersize=$(PAPERSIZE) $< 
39
40