summaryrefslogtreecommitdiff
path: root/Allein_Gott_in_der_Hoeh_sei_Ehr/Makefile
blob: 90faa6447aacc9de9e9415972effbb74a8f038cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
	m4 <"$<" >"$@"

%.pdf: %.post $(patsubst %.ly,%.post, $(shell ls *.ly))
	lilypond $<