3 MUTOPIA_MIRROR
= http
://www.mutopiaproject.org
/ftp
5 # mutopia-dir = $(pwd:%/mutopia/%=mutopia)
6 mutopia-dir
= $(shell pwd | sed
's@.*mutopia@@')
9 wget-list
= $(mutopia-examples
:%=$(mutopia-dir
)/%)
11 dirs-ignore
= GNUmakefile out out-
% index.html ftp
12 dirs-before
= $(SUBDIRS
)
13 dirs-after
= $(filter-out .
,$(shell find .
-maxdepth
1 -type d
-not
-name
'out*'))
17 depth = $(depth)/..\n\
18 include $$(depth)/ports/ports.make\n\
23 # scores for target local-WWW (duh)
29 # scores for target mutopia
31 # Hairy hack to support name `score.ly' inside zipfile.
32 # This will fail to download and build mutopia in one go,
33 # either download first, or issue `make mutopia' twice.
34 # How to really fix this?
36 mutopia-parts
= $(patsubst %.ly
,%,$(wildcard *-part.ly
))
37 mutopia-scores
= $(patsubst %.ly
,%,$(wildcard $(mutopia-name
).ly score.ly
))
38 ifeq ($(mutopia-scores
),)
39 mutopia-scores
= $(patsubst %.ly
,%, $(shell grep
-l
'\\score' *.ly
))
40 ifeq ($(mutopia-scores
),)
41 mutopia-scores
= $(mutopia-name
)
44 mutopia-examples
= $(sort $(mutopia-scores
) $(mutopia-parts
))