.RECIPEPREFIX += TARGET = letter.pdf SIGIMAGE = figures/signature.png.gpg all: $(TARGET) $(TARGET): update-sig main.pdf mv main.pdf letter.pdf main.pdf: rubber -m xelatex main.tex update-sig: gpg --yes --output figures/signature.png --decrypt $(SIGIMAGE) clean: rubber -m xelatex --clean main.tex && $(RM) $(TARGET) && $(RM) figures/signature.png