X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=make%2Fmutopia-targets.make;h=16906c87fe292adb186f363eae1160c2523ad47e;hb=cdeb130278c75bd9053b82d59bbc29218e759179;hp=b01250df598eb0663eafd357eca7785b42f67c4d;hpb=4d850717bd783b2617971607fac5b52780aa08df;p=lilypond.git diff --git a/make/mutopia-targets.make b/make/mutopia-targets.make index b01250df59..16906c87fe 100644 --- a/make/mutopia-targets.make +++ b/make/mutopia-targets.make @@ -1,5 +1,5 @@ -.PHONY: mutopia png ps scores tar +.PHONY: download mutopia png ps scores tar .PRECIOUS: $(outdir)/%.ps $(outdir)/%-book.ps .PRECIOUS: $(outdir)-letter/%.dvi $(outdir)-letter/%.ps @@ -30,16 +30,6 @@ ps: $(ps_examples) scores: $(score_ps) $(MAKE) ps_examples="$<" ps -mutopia-letter=$(mutopia-examples:%=out-letter/%.ps.gz) - -mutopia: - $(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter) - -local-clean: local-letter-clean - -local-letter-clean: - rm -f $(outdir)-letter/* - # # and -book targets only available through ly.make template makefile; # too scary to install in LilyPonds make yet. @@ -63,6 +53,21 @@ $(outdir)/%-book.ps: $(outdir)/%.ps @echo Making $@ from $< endif + +local-mutopia: + $(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW $(mutopia-letter) + +mutopia: local-mutopia + $(LOOP) + +mutopia-letter=$(mutopia-examples:%=out-letter/%.ps.gz) + +local-clean: local-letter-clean + +local-letter-clean: + rm -f $(outdir)-letter/* + + local-help: @echo -e "\ update $(outdir)/.ps\n\ @@ -74,3 +79,43 @@ local-help: scores update PostScript of all scores\n\ "\ # + + + +# +# mutopia-archive playground +# + + +# -> 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)/%) + +local-remove-ly: + -mv -f $(wildcard *.ly) $(outdir) + +remove-ly: local-remove-ly + $(LOOP) + +local-download: $(mutopia-examples:%=%.ly) + @echo downloading $< + +download: local-download + $(LOOP) + +# -> mutopia-rules.make +ifeq ($(zipped),) +%.ly: + wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@ +else +%.zip: + wget $(MUTOPIA_MIRROR)/$(mutopia-dir)/$@ + +%.ly: %-lys.zip + unzip $< +endif + +