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

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