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(-x11)? $@" || true