3 # Mutopia Makefile Project
5 # Rename this file to GNUmakefile, and issue `make help'
10 # Magic: find and include LilyPond's StepMake rules
12 # 0: follow LILYPONDPREFIX
14 # 2: try installed tree in $HOME
15 # 3: try system installed tree
17 make-root=$(wildcard $(LILYPONDPREFIX)/make)
18 make-root?=$(wildcard $(HOME)/usr/src/lilypond/make)
19 make-root?=$(wildcard /usr/share/lilypond/make)
20 make-root?=$(wildcard /usr/share/lilypond/make)
21 #make-root=<LilyPond's datadir>/make
23 $(message running from $(make-root))
25 LOCALSTEPMAKE_TEMPLATES=ly mutopia
26 include $(make-root)/stepmake.make
28 $(error can't find LilyPond's stepmake installation)
34 # Mutopia/user targets.
35 # This needs some work.
39 # Name of mutopia project
43 parts=$(patsubst %.ly,%,$(wildcard *-part.ly))
44 mutopia-examples=$(name) $(parts)
49 $(outdir)/%-book.ps: $(outdir)/%.ps
51 pstops '2:0L(11.45in,0.25in)+1L(11.45in,5.6in)' $<.tmp $@
54 # Catch-all target: type `make foo' to make out/foo.ps,
55 # or make `foo-book' to make out/foo-book.ps
58 @echo Making $@ from $<