default: all .PHONY: default all: .PHONY: all TEX:= $(wildcard ./*/*.tex) tex: $(TEX) pdflatex ## Licences ## ## Convert svg licence files to pdf+pdf_tex LICENCES:= $(wildcard ./licences/*.svg) LICENCES_PDF:= $(patsubst %.svg,%.pdf,$(wildcard ./licences/*.svg)) licences: $(LICENCES_PDF) $(LICENCES_PDF): $(LICENCES) echo $(TEX) inkscape -D $^ -o $@ --export-latex