Move 'all' target to top of Makefile

This commit is contained in:
Andreas Tsouchlos 2023-12-24 02:02:19 +01:00
parent 28fd7971f9
commit 5a3c14aeb3

View File

@ -1,11 +1,11 @@
SRCS=$(shell find examples -type f -name "*.tex") SRCS=$(shell find examples -type f -name "*.tex")
PDFS=$(shell echo $(SRCS:.tex=.pdf) | sed -e "s/examples\\///g") PDFS=$(shell echo $(SRCS:.tex=.pdf) | sed -e "s/examples\\///g")
all: $(PDFS)
%.pdf: examples/%.tex %.pdf: examples/%.tex
latexmk $< latexmk $<
all: $(PDFS)
clean: clean:
rm -rf build rm -rf build