]> git.donarmstrong.com Git - lilypond.git/blob - make/mutopia-targets.make
patch::: 1.3.140.jcn5
[lilypond.git] / make / mutopia-targets.make
1
2 include $(stepdir)/www-targets.make
3
4
5 .PHONY: download mutopia png ps scores tar
6
7 .PRECIOUS: $(outdir)/%.ps $(outdir)/%-book.ps
8 .PRECIOUS: $(outdir)-letter/%.dvi $(outdir)-letter/%.ps
9
10
11 all: $(OUT_FILES)
12
13 local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(png_examples)
14
15 convert-ly: local-convert-ly
16         $(LOOP)
17
18 local-convert-ly:
19         $(PYTHON) $(CONVERT_LY) --edit --assume-old *ly
20
21 tar:
22         mkdir -p $(outdir)/$(tarball)
23         cp -p *.ly $(outdir)/$(tarball)
24         cd $(outdir) && tar czf $(tarball).tar.gz $(tarball)
25         rm -rf $(outdir)/$(tarball)
26
27 png: $(png_examples)
28
29 ps: $(ps_examples)
30
31 scores: $(score_ps)
32         $(MAKE) ps_examples="$<" ps
33
34 local-mutopia:
35         $(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter)
36
37 mutopia: local-mutopia
38         $(LOOP)
39
40 mutopia-letter=$(mutopia-examples:%=out-letter/%.ps.gz)
41
42 local-clean: local-letter-clean
43
44 local-letter-clean:
45         rm -f $(outdir)-letter/*
46
47
48 local-help: local-mutopia-help
49
50 local-mutopia-help:
51         @echo -e "\
52   <NAME>      update $(outdir)/<NAME>.ps\n\
53   <NAME>-book update booklet $(outdir)/<NAME>-book.ps\n\
54   convert-ly  convert all LilyPond sources\n\
55   mutopia     update PNGs, PostScript a4 and letter of all mutopia-examples\n\
56   png         update PNGs of all examples\n\
57   ps          update PostScript of all examples\n\
58   scores      update PostScript of all scores\n\
59 "\
60 #
61
62