4 # Magic: find and include LilyPond's StepMake rules
6 # 0: follow LILYPONDPREFIX
8 # 2: try installed tree in $HOME
9 # 3: try system installed tree
11 make-root=$(wildcard $(LILYPONDPREFIX)/make)
12 make-root?=$(wildcard $(HOME)/usr/src/lilypond/make)
13 make-root?=$(wildcard /usr/share/lilypond/make)
14 make-root?=$(wildcard /usr/share/lilypond/make)
15 #make-root=<LilyPond's datadir>/make
17 ### some versions apparently choke on $(message)
18 ### $(message running from $(make-root))
20 LOCALSTEPMAKE_TEMPLATES=ly mutopia
21 include $(make-root)/stepmake.make
23 $(error can't find LilyPond's stepmake installation)