]> git.donarmstrong.com Git - lilypond.git/commitdiff
Makefiles: Remove old ports targets and the convert-ly target
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 16 Nov 2008 17:39:55 +0000 (18:39 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 16 Nov 2008 20:29:20 +0000 (21:29 +0100)
The convert-ly target was intended to automatically download and convert all
scores from mutopia and was last changed in lilypond 1.4. It is not called
except from the ports-*.make files, which in turn are not included anywhere.

we will make use of it

make/ly-targets.make
make/ports-rules.make [deleted file]
make/ports-targets.make [deleted file]
make/ports-vars.make [deleted file]

index 3cbdd81b6df5b17d2a394b4572d6089d3ae1fdba..2c5ddcc107bacc2ba08eba2875078c6f51c26785 100644 (file)
@@ -1,7 +1 @@
-convert-ly: local-convert-ly
-       $(LOOP)
-
-local-convert-ly:
-       $(PYTHON) $(CONVERT_LY) --edit --assume-old *ly
-
 local-help:
diff --git a/make/ports-rules.make b/make/ports-rules.make
deleted file mode 100644 (file)
index 5e509ee..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-ifeq ($(zipped),)
-%.ly:
-       wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
-       $(MAKE) local-convert-ly
-else
-%.zip:
-       wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@
-
-%.ly:  %-lys.zip
-       unzip -n $<
-       $(MAKE) local-convert-ly
-endif
-
-%/GNUmakefile:
-       mkdir -p $(@D)
-       $(if $(shell grep '[.]ly' $(@D)/index.html), \
-               echo 'mutopia-name = $(@D)' > $@, \
-               $(if $(shell grep '[.]zip' $(@D)/index.html), \
-                       echo -e 'zipped = true\nmutopia-name = $(@D)' > $@))
-       echo -e $(GNUmakefile) >> $@
-
-
diff --git a/make/ports-targets.make b/make/ports-targets.make
deleted file mode 100644 (file)
index 529672c..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-
-local-ly-clean:
-       $(if $(wildcard *.ly), -mv -f $(wildcard *.ly) $(outdir))
-
-ly-clean: local-ly-clean
-       $(LOOP)
-
-local-download: $(mutopia-examples:%=%.ly)
-       @echo downloading $<
-
-download: local-download
-       $(LOOP)
-
-#
-# Lots smarter would be to do one recursive wget, getting all index.html,
-# parse those with python script to setup tree.
-#
-local-sync:
-       wget --recursive --no-parent --level=1 --timestamping --dont-remove-listing --no-host-directories --accept=index.html $(MUTOPIA_MIRROR)/$(mutopia-dir)/
-# ugh
-# -mv ./ftp/$(mutopia-dir)/* .
-       cp -r ./ftp/$(mutopia-dir)/* .
-       rm -rf ./ftp
-       $(MAKE) 'dirs-before=$(dirs-before)' generate-GNUmakefiles
-
-#
-# should we dowload .ly and .zip just to fill-in tree?
-#
-sync: local-sync
-#      wget --recursive --no-parent --timestamping --dont-remove-listing --no-host-directories --cut-dirs=2 --accept=foo $(MUTOPIA_MIRROR)/$(mutopia-dir)/
-       $(LOOP)
-
-generate-GNUmakefiles: $(dirs-after:%=%/GNUmakefile)
-
-truncate = $(filter-out %/GNUmakefile , $(wildcard */*))
-trunc:
-       rm -fr $(truncate)
-
-# too time-consuming?
-# local-dist: local-ly-clean
-
-local-help: local-ports-help
-
-local-ports-help:
-       @echo -e "\
-  download    download .lys from $(MUTOPIA_MIRROR)\n\
-  ly-clean    move all .lys to $(outdir)\n\
-  sync        generate missing parts of tree\n\
-  trunc       truncate tree\n\
-"\
-
diff --git a/make/ports-vars.make b/make/ports-vars.make
deleted file mode 100644 (file)
index e443089..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-
-# -> 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))
-