summaryrefslogtreecommitdiff
path: root/Kanons/Der_Herrgott_laesst_wachsen_das_taegliche_Brot/Makefile
blob: cb66cc7c82dce68a430004873e21818a0f3a8880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CURDOC=$(shell basename "$(CURDIR)")

all: $(CURDOC).pdf
	pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' || true

clean:
	rm -f *.pre

Clean: clean
	rm -f *.pdf *.midi

include ../.meta/*.mk

%.pre: %.ly
	cat "$<" > "$@"

%.post: %.pre $(patsubst %.ly,%.pre, $(shell ls *.ly))
	m4 <"$<" >"$@"

%.pdf: %.post
	lilypond $<
	pkill -SIGHUP -xf "mupdf $@" || true