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