SRC=${wildcard *.tex} OPT=--pdf --synctex --command "makeidx.style index.ist" all: main.pdf clean: rubber --clean ${SRC} main.pdf: ${SRC} garde.pdf rubber ${OPT} main.tex garde.pdf: garde.tex pdflatex $<