]> git.donarmstrong.com Git - lilypond.git/blob - ports/ports.make
''
[lilypond.git] / ports / ports.make
1 # mutopia/mutopia.make
2
3 #
4 # Magic: find and include LilyPond's StepMake rules
5 #
6 # 0: try local tree
7 # 1: follow LILYPONDPREFIX
8 # 2: try source tree in home
9 # 3: try installed tree in $HOME
10 # 4: try system installed tree
11 # 5: try system installed tree
12 #
13 make-root=$(wildcard $(depth)/make)
14 #
15 make-root?=$(wildcard $(LILYPONDPREFIX)/make)
16 make-root?=$(wildcard $(HOME)/usr/share/lilypond/make)
17 make-root?=$(wildcard /usr/share/lilypond/make)
18 make-root?=$(wildcard /usr/local/share/lilypond/make)
19 # make-root=<LilyPond's datadir>/make
20
21 ifeq ($(SUBDIRS),)
22 SUBDIRS = $(filter-out .,$(shell find . -maxdepth 1 -type d -not -name 'out*' -and -not -name 'CVS'))
23 endif
24
25 ifneq ($(make-root),)
26 LOCALSTEPMAKE_TEMPLATES=ports mutopia ly
27 include $(make-root)/stepmake.make
28 else
29 $(error can't find LilyPond's stepmake installation)
30 endif
31 #
32