blob: 9dcdc6c4b872a9be181eb85d71d7205112e15008 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
CURDOC=$(shell basename "$(CURDIR)")
all: $(CURDOC).pdf
pkill -SIGHUP -xf 'mupdf(-x11)? (.*/)?$<' || true
clean:
rm -f *.pre *.post
Clean: clean
rm -f *.pdf *.midi
include ../.meta/*.mk
%.pre: %.ly
cat "$<" > "$@"
%.post: %.pre $(patsubst %.ly,%.pre, $(shell ls *.ly))
m4 <"$<" >"$@"
%.pdf: %.post
lilypond $<
%.midi: %-nur-midi.post
lilypond $<
test:
echo $(patsubst %.ly,%.post, $(shell ls *.ly))
|