From: fred Date: Wed, 21 Mar 2001 16:18:29 +0000 (+0000) Subject: lilypond-1.3.141 X-Git-Tag: release/1.5.59~5705 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7e5a3015ff0cf1df6896f304eea99814792ff0e6;p=lilypond.git lilypond-1.3.141 --- diff --git a/make/ports-vars.make b/make/ports-vars.make new file mode 100644 index 0000000000..e44308971e --- /dev/null +++ b/make/ports-vars.make @@ -0,0 +1,45 @@ + +# -> mutopia-vars.make +MUTOPIA_MIRROR = http://www.mutopiaproject.org/ftp +# ugh: doesn't work +# mutopia-dir = $(pwd:%/mutopia/%=mutopia) +mutopia-dir = $(shell pwd | sed 's@.*mutopia@@') + + +wget-list = $(mutopia-examples:%=$(mutopia-dir)/%) + +dirs-ignore = GNUmakefile out out-% index.html ftp +dirs-before = $(SUBDIRS) +dirs-after = $(filter-out .,$(shell find . -maxdepth 1 -type d -not -name 'out*')) + + +GNUmakefile = '\ +depth = $(depth)/..\n\ +include $$(depth)/ports/ports.make\n\ +' + + +# +# scores for target local-WWW (duh) +# +examples= + + +# +# scores for target mutopia +# +# Hairy hack to support name `score.ly' inside zipfile. +# This will fail to download and build mutopia in one go, +# either download first, or issue `make mutopia' twice. +# How to really fix this? +# +mutopia-parts = $(patsubst %.ly,%,$(wildcard *-part.ly)) +mutopia-scores = $(patsubst %.ly,%,$(wildcard $(mutopia-name).ly score.ly)) +ifeq ($(mutopia-scores),) +mutopia-scores = $(patsubst %.ly,%, $(shell grep -l '\\score' *.ly)) +ifeq ($(mutopia-scores),) +mutopia-scores = $(mutopia-name) +endif +endif +mutopia-examples = $(sort $(mutopia-scores) $(mutopia-parts)) +