]> git.donarmstrong.com Git - lilypond.git/blob - make/mutopia-targets.make
patch::: 1.3.130.jcn5
[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 #
20 # Also clean hand-compiled stuff in cwd
21 #
22 localclean: local-auto-gen-clean
23
24 local-auto-gen-clean:
25         rm -f `grep -l 'Generated automacially by'  *`
26         rm -f *.dvi *.png
27
28 tar:
29         mkdir -p $(outdir)/$(tarball)
30         cp -p *.ly $(outdir)/$(tarball)
31         cd $(outdir) && tar czf $(tarball).tar.gz $(tarball)
32         rm -rf $(outdir)/$(tarball)
33
34 png: $(png_examples)
35
36 ps: $(ps_examples)
37
38 scores: $(score_ps)
39         $(MAKE) ps_examples="$<" ps
40
41 mutopia-letter=$(mutopia-examples:%=out-letter/%.ps.gz)
42
43 mutopia:
44         $(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter)
45
46 #
47 # <NAME> and -book targets only available through ly.make template makefile;
48 # too scary to install in LilyPonds make yet.
49 #
50 #
51
52 ifeq (0,1)
53 #
54 # Timothy's booklet
55 #
56 $(outdir)/%-book.ps: $(outdir)/%.ps
57         psbook $< $<.1
58         pstops '2:0L(11.45in,0.25in)+1L(11.45in,5.6in)' $<.1 $@
59         rm -f $<.1
60
61 #
62 # Catch-all target: type `make foo' to make out/foo.ps,
63 # or make `foo-book' to make out/foo-book.ps
64 #
65 %: $(outdir)/%.ps
66         @echo Making $@ from $<
67 endif
68
69 local-help:
70         @echo -e "\
71   <NAME>      update $(outdir)/<NAME>.ps\n\
72   <NAME>-book update booklet $(outdir)/<NAME>-book.ps\n\
73   convert-ly  convert all LilyPond sources\n\
74   mutopia     update PNGs, PostScript a4 and letter of all mutopia-examples\n\
75   png         update PNGs of all examples\n\
76   ps          update PostScript of all examples\n\
77   scores      update PostScript of all scores\n\
78 "\
79 #