RESTFILES=$(wildcard *.rst) PDFFILES=$(RESTFILES:.rst=.pdf) APACHECONFS=$(wildcard svn/sites-available/*) all: $(PDFFILES) infra01setup.pdf: %.pdf: %.rst lxc-setup.ini ferm.conf svnsetup.pdf: %.pdf: %.rst svn/backupsvn.sh svn/restore-backup.sh $(APACHECONFS) $(PDFFILES): %.pdf: %.rst rst2pdf $< clean: -rm *~ *.pyc distclean: clean -rm $(PDFFILES) .PHONY: all