Makefile: Abhängikeit zu anderen tex-Dateien hinzugefügt

This commit is contained in:
Jörg Thalheim 2013-10-31 11:08:55 +01:00
parent 3d1011854f
commit 6493078b2c

View File

@ -4,12 +4,13 @@
./check_cmds.sh .inotifywait inotifywait ./check_cmds.sh .inotifywait inotifywait
%.pdf: %.tex %.pdf: %.tex
latexmk -pdf $< latexmk -pdf $<
bericht.pdf: $(wildcard abschnitte/*.tex)
all: .cmd_ok bericht.pdf all: .cmd_ok bericht.pdf
clean: clean:
latexmk -CA latexmk -CA
watch: .inotifywait watch: .inotifywait
echo "Abort with Ctrl+C" echo "Abort with Ctrl+C"
while (true); do\ while (true); do\
inotifywait -e MOVE_SELF -e "modify" bericht.tex;\ inotifywait -e MOVE_SELF -e "modify" abschnitte/*.tex bericht.tex;\
latexmk -pdf bericht.tex; \ latexmk -pdf bericht.tex; \
done done