TARGET=gbp.pdf IMGS=$(shell ls images/*.png) SOURCES = $(TARGET:pdf=tex) all: $(TARGET) $(IMGS) $(TARGET): $(SOURCES) pdflatex $< clean: rm -f *.toc *.cgm *.nav *.log *.out *.aux *.snm *.*~ *.vrb allforce: rm -f $(TARGET) make all rm -f $(TARGET) make all show: $(TARGET) Makefile evince -s --page-label=1 $(TARGET)