1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
PACKAGE := fripost TEX := $(basename $(wildcard *.tex)) PDF = $(addsuffix .pdf, $(TEX)) all: $(PDF) $(PDF): %.pdf: %.tex $(PACKAGE).sty pdflatex $< $(PACKAGE).sty: %.sty: ../tex/%.sty ln -s $< clean: rm -f *~ *.aux *.log *.out *.pdf rm -f *.sty .PHONY: all