]> git.donarmstrong.com Git - lilypond.git/blob - make/mutopia-targets.make
patch::: 1.3.131.jcn1
[lilypond.git] / make / mutopia-targets.make
1
2 .PHONY: mutopia png ps scores tar
3
4 .PRECIOUS: $(outdir)/%.ps $(outdir)/%-book.ps
5 .PRECIOUS: $(outdir)-letter/%.dvi $(outdir)-letter/%.ps
6
7 all: $(OUT_FILES)
8
9 local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(png_examples)
10
11 local-web:
12         $(MAKE) conf=www local-WWW
13
14 convert-ly: local-convert-ly
15         $(LOOP)
16
17 local-convert-ly:
18         $(PYTHON) $(CONVERT_LY) -e *ly
19
20 tar:
21         mkdir -p $(outdir)/$(tarball)
22         cp -p *.ly $(outdir)/$(tarball)
23         cd $(outdir) && tar czf $(tarball).tar.gz $(tarball)
24         rm -rf $(outdir)/$(tarball)
25
26 png: $(png_examples)
27
28 ps: $(ps_examples)
29
30 scores: $(score_ps)
31         $(MAKE) ps_examples="$<" ps
32
33 mutopia-letter=$(mutopia-examples:%=out-letter/%.ps.gz)
34
35 mutopia:
36         $(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter)
37
38 #
39 # <NAME> and -book targets only available through ly.make template makefile;
40 # too scary to install in LilyPonds make yet.
41 #
42 #
43
44 ifeq (0,1)
45 #
46 # Timothy's booklet
47 #
48 $(outdir)/%-book.ps: $(outdir)/%.ps
49         psbook $< $<.1
50         pstops '2:0L(11.45in,0.25in)+1L(11.45in,5.6in)' $<.1 $@
51         rm -f $<.1
52
53 #
54 # Catch-all target: type `make foo' to make out/foo.ps,
55 # or make `foo-book' to make out/foo-book.ps
56 #
57 %: $(outdir)/%.ps
58         @echo Making $@ from $<
59 endif
60
61 local-help:
62         @echo -e "\
63   <NAME>      update $(outdir)/<NAME>.ps\n\
64   <NAME>-book update booklet $(outdir)/<NAME>-book.ps\n\
65   convert-ly  convert all LilyPond sources\n\
66   mutopia     update PNGs, PostScript a4 and letter of all mutopia-examples\n\
67   png         update PNGs of all examples\n\
68   ps          update PostScript of all examples\n\
69   scores      update PostScript of all scores\n\
70 "\
71 #