Fixed makefile wildcards

This commit is contained in:
2025-03-25 13:38:10 +00:00
parent 47d7bd6667
commit 29e99f6a49

View File

@@ -9,13 +9,15 @@ PDFS=$(patsubst %.tex,%.pdf,$(SOURCES))
all: ${PDFS} README.md all: ${PDFS} README.md
%.pdf: %.tex $(wildcard %-*.tex) dec.cls decsectional.cls
pdflatex ${basename $@ .pdf} < /dev/null
pdflatex ${basename $@ .pdf} < /dev/null
watch: watch:
ls *.tex *.cls | entr -c -s 'make' ls *.tex *.cls | entr -c -s 'make'
README.md: README.tex README.md: README.tex
pandoc -s README.tex -o README.md pandoc -s README.tex -o README.md
.SECONDEXPANSION:
%.pdf: %.tex $$(wildcard %-*.tex) dec.cls decsectional.cls
pdflatex ${basename $@ .pdf} < /dev/null
pdflatex ${basename $@ .pdf} < /dev/null