summaryrefslogtreecommitdiff
path: root/Schuetz_Singet_dem_Herrn_CIS/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Schuetz_Singet_dem_Herrn_CIS/Makefile')
-rw-r--r--Schuetz_Singet_dem_Herrn_CIS/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Schuetz_Singet_dem_Herrn_CIS/Makefile b/Schuetz_Singet_dem_Herrn_CIS/Makefile
new file mode 100644
index 0000000..93067fb
--- /dev/null
+++ b/Schuetz_Singet_dem_Herrn_CIS/Makefile
@@ -0,0 +1,36 @@
+CURDOC=$(shell basename "$(CURDIR)")
+
+DIRS=../Geh_aus_mein_Herz ../In_dieser_lieben_Sommerzeit
+
+EXTRAS=-mit-Texthinweisen
+
+all: $(CURDOC)$(EXTRAS).pdf
+
+print:
+ @echo $(CURDOC)$(EXTRAS).pdf
+
+clean:
+ rm -f *.pre *.post
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+include ../.meta/*.mk
+
+%.pre: %.ly
+ cat "$<" > "$@"
+
+Geh_aus_mein_Herz_%.pre: ../Geh_aus_mein_Herz/%.ly
+ cat "$<" > "$@"
+
+In_dieser_lieben_Sommerzeit_%.pre: ../In_dieser_lieben_Sommerzeit/%.ly
+ cat "$<" > "$@"
+
+%.post: %.pre $(patsubst %.ly,%.pre,$(shell find $(DIRS) -name '*.ly' | cut -d/ -f2,3 | tr '/' '_')) ../.meta/header.ly
+ cat ../.meta/header.ly "$<" \
+ |m4 \
+ >"$@"
+
+%.pdf: %.post
+ lilypond $<
+ pkill -SIGHUP -xf "mupdf(-x11)? $@" || true