summaryrefslogtreecommitdiff
path: root/Alle_Voegel_sind_schon_da/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Alle_Voegel_sind_schon_da/Makefile')
-rw-r--r--Alle_Voegel_sind_schon_da/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Alle_Voegel_sind_schon_da/Makefile b/Alle_Voegel_sind_schon_da/Makefile
new file mode 100644
index 0000000..dbe7f79
--- /dev/null
+++ b/Alle_Voegel_sind_schon_da/Makefile
@@ -0,0 +1,25 @@
+CURDOC=$(shell basename "$(CURDIR)")
+
+EXTRAS=$(shell ../.meta/find-extras)
+
+all: $(CURDOC)$(EXTRAS).pdf $(CURDOC)$(EXTRAS)-tolino.pdf
+
+clean:
+ rm -f *.pre
+
+Clean: clean
+ rm -f *.pdf *.midi
+
+include ../.meta/*.mk
+
+%.pre: %.ly
+ cat "$<" > "$@"
+
+%.post: %.pre $(patsubst %.ly,%.pre, $(shell find . -name '*.ly')) ../.meta/header.ly
+ cat ../.meta/header.ly "$<" \
+ |m4 \
+ >"$@"
+
+%.pdf: %.post
+ lilypond $<
+ pkill -SIGHUP -xf "mupdf(-x11)? $@" || true