]> git.donarmstrong.com Git - lilypond.git/blob - make/ly.make
patch::: 1.3.130.jcn4
[lilypond.git] / make / ly.make
1 #!/usr/bin/make
2 #
3 # Mutopia Makefile Project
4 #
5 # Rename this file to GNUmakefile, and issue `make help'
6 #
7
8
9 #
10 # Magic: find and include LilyPond's StepMake rules
11 #
12 # First, try source tree
13 # Second, try installed tree in $HOME
14 # Third, try system installed tree
15 #
16 #
17 ##For testing installed lily
18 ##make-root=$(wildcard $(HOME)/tmp/test/usr/share/lilypond/make)
19 #
20 #
21 make-root=$(wildcard $(HOME)/usr/src/lilypond/make)
22 make-root?=$(wildcard /usr/share/lilypond/make)
23 make-root?=$(wildcard /usr/share/lilypond/make)
24 ifneq ($(make-root),)
25 $(message running from $(make-root))
26 depth=$(make-root)/..
27 LOCALSTEPMAKE_TEMPLATES=ly mutopia
28 include $(make-root)/stepmake.make
29 else
30 $(error can't find LilyPond's stepmake installation)
31 endif
32 #
33
34
35 #
36 # Mutopia/user targets.
37 # This needs some work.
38 #
39
40 parts=$(patsubst %.ly,%,$(wildcard *-part.ly))
41 tarball=$(name)
42 mutopia-examples=$(name)
43