]> git.donarmstrong.com Git - lilypond.git/blob - make/ports-vars.make
Add support for max-systems-per-page.
[lilypond.git] / make / ports-vars.make
1
2 # -> mutopia-vars.make
3 MUTOPIA_MIRROR = http://www.mutopiaproject.org/ftp
4 # ugh: doesn't work
5 # mutopia-dir = $(pwd:%/mutopia/%=mutopia)
6 mutopia-dir = $(shell pwd | sed 's@.*mutopia@@')
7
8
9 wget-list = $(mutopia-examples:%=$(mutopia-dir)/%)
10
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*'))
14
15
16 GNUmakefile = '\
17 depth = $(depth)/..\n\
18 include $$(depth)/ports/ports.make\n\
19 '
20
21
22 #
23 # scores for target local-WWW (duh)
24 #
25 examples=
26
27
28 #
29 # scores for target mutopia
30 #
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?
35 #
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)
42 endif
43 endif
44 mutopia-examples = $(sort $(mutopia-scores) $(mutopia-parts))
45