]> git.donarmstrong.com Git - lilypond.git/blob - make/mutopia-targets.make
patch::: 1.3.140.jcn1
[lilypond.git] / make / mutopia-targets.make
1
2 .PHONY: download 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 #
34 # <NAME> and -book targets only available through ly.make template makefile;
35 # too scary to install in LilyPonds make yet.
36 #
37 #
38
39 ifeq (0,1)
40 #
41 # Timothy's booklet
42 #
43 $(outdir)/%-book.ps: $(outdir)/%.ps
44         psbook $< $<.1
45         pstops '2:0L(11.45in,0.25in)+1L(11.45in,5.6in)' $<.1 $@
46         rm -f $<.1
47
48 #
49 # Catch-all target: type `make foo' to make out/foo.ps,
50 # or make `foo-book' to make out/foo-book.ps
51 #
52 %: $(outdir)/%.ps
53         @echo Making $@ from $<
54 endif
55
56 local-mutopia:
57         $(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter)
58
59 mutopia: local-mutopia
60         $(LOOP)
61
62 mutopia-letter=$(mutopia-examples:%=out-letter/%.ps.gz)
63
64 local-clean: local-letter-clean
65
66 local-letter-clean:
67         rm -f $(outdir)-letter/*
68
69
70 local-help: local-mutopia-help
71
72 local-mutopia-help:
73         @echo -e "\
74   <NAME>      update $(outdir)/<NAME>.ps\n\
75   <NAME>-book update booklet $(outdir)/<NAME>-book.ps\n\
76   convert-ly  convert all LilyPond sources\n\
77   mutopia     update PNGs, PostScript a4 and letter of all mutopia-examples\n\
78   png         update PNGs of all examples\n\
79   ps          update PostScript of all examples\n\
80   scores      update PostScript of all scores\n\
81 "\
82 #
83
84