Skip to content

Commit afa0231

Browse files
committed
Streamline Makefile.
1 parent be96389 commit afa0231

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

examens/Makefile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
all: partiel-2023.pdf correction-2023.pdf partiel-2024.pdf correction-2024.pdf
1+
TEXFILES := $(wildcard *.tex)
2+
PDFS := $(TEXFILES:.tex=.pdf)
3+
4+
all: $(PDFS)
25

36
%.pdf: %.tex
4-
rubber --pdf $^
5-
rubber --clean $^
7+
latexmk -pdf -interaction=nonstopmode -quiet $<
8+
latexmk -c $<
9+
rm -f *.synctex.gz
10+
11+
clean:
12+
latexmk -c
613

7-
clean-all:
8-
rm -f partiel-*.pdf
9-
rm -f correction-*.pdf
10-
rm -rf auto
14+
distclean:
15+
latexmk -C
1116

12-
.PHONY: clean-all
17+
.PHONY: clean distclean

0 commit comments

Comments
 (0)