From: Reinhold Kainhofer Date: Sun, 16 Nov 2008 17:39:55 +0000 (+0100) Subject: Makefiles: Remove old ports targets and the convert-ly target X-Git-Tag: release/2.11.65-1~51^2~9 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=65f7a3993db06204af81a68f86a74efeb353d539;p=lilypond.git Makefiles: Remove old ports targets and the convert-ly target 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 --- diff --git a/make/ly-targets.make b/make/ly-targets.make index 3cbdd81b6d..2c5ddcc107 100644 --- a/make/ly-targets.make +++ b/make/ly-targets.make @@ -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 index 5e509eeb33..0000000000 --- a/make/ports-rules.make +++ /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 index 529672ced5..0000000000 --- a/make/ports-targets.make +++ /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 index e44308971e..0000000000 --- a/make/ports-vars.make +++ /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)) -