-.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
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/*
-
#
# <NAME> and -book targets only available through ly.make template makefile;
# too scary to install in LilyPonds make yet.
@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 "\
<NAME> update $(outdir)/<NAME>.ps\n\
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
+
+
--- /dev/null
+# mutopia/Makefile
+
+depth = ../../..
+
+SUBDIRS = concerto-in-e-major
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/mutopia/mutopia.make
+
--- /dev/null
+# mutopia/Makefile
+
+depth = ../../../..
+
+SUBDIRS =
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+zipped = true
+mutopia-examples = concerto-in-e-major
+
+include $(depth)/mutopia/mutopia.make
+
+
--- /dev/null
+# mutopia/Makefile
+
+depth = ../../..
+
+SUBDIRS = bach-invention-01
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/mutopia/mutopia.make
+
--- /dev/null
+# mutopia/Makefile
+
+depth = ../../../..
+
+SUBDIRS =
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+mutopia-examples = bach-invention-01
+
+include $(depth)/mutopia/mutopia.make
+
+
--- /dev/null
+# mutopia/Makefile
+
+depth = ../..
+
+SUBDIRS = BWV772 BWV1042
+
+LOCALSTEPMAKE_TEMPLATES=mutopia
+
+include $(depth)/mutopia/mutopia.make
+
copyright = "Public Domain";
maintainer = "Jan Nieuwenhuizen";
maintainer_email = "janneke@gnu.org";
- lastupdated = "2001/Feb/27";
+ lastupdated = "2001/Mar/18";
mutopiapublicdomain = "\\parbox{\hsize}{\\thefooter\\quad\\small
\\\\This music is part of the Mutopia project,
\\texttt{http://www.mutopiaproject.org/}\\\\It has been typeset
".\\\\Unrestricted modification and redistribution is permitted
and encouraged---copy this music and share it.}";
tagline = \mutopiapublicdomain;
- footer = "pre-Mutopia-200y/mm/dd-nr";
+ footer = "pre-Mutopia-2001/03/18-57";
}
SUBDIRS = J.S.Bach Coriolan F.Schubert D.Zipoli Hymns E.Satie
-examples=
-LOCALSTEPMAKE_TEMPLATES=mutopia
-
-include $(depth)/make/stepmake.make
+# empty mutopia-archive dirs
+SUBDIRS += BachJS
-EXTRA_DIST_FILES +=
+LOCALSTEPMAKE_TEMPLATES=mutopia
+EXTRA_DIST_FILES = mutopia.make
+include $(depth)/mutopia/mutopia.make
--- /dev/null
+# mutopia/mutopia.make
+
+#
+# Magic: find and include LilyPond's StepMake rules
+#
+# 0: follow LILYPONDPREFIX
+# 1: try source tree
+# 2: try installed tree in $HOME
+# 3: try system installed tree
+#
+make-root=$(wildcard $(LILYPONDPREFIX)/make)
+make-root?=$(wildcard $(HOME)/usr/src/lilypond/make)
+make-root?=$(wildcard /usr/share/lilypond/make)
+make-root?=$(wildcard /usr/share/lilypond/make)
+#make-root=<LilyPond's datadir>/make
+ifneq ($(make-root),)
+### some versions apparently choke on $(message)
+### $(message running from $(make-root))
+depth=$(make-root)/..
+LOCALSTEPMAKE_TEMPLATES=ly mutopia
+include $(make-root)/stepmake.make
+else
+$(error can't find LilyPond's stepmake installation)
+endif
+#
+