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