WALLET = wallet #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LATEX = pdflatex -halt-on-error QRENCODE = qrencode XPDF = xdg-open .PHONY: all clean pdf run all: $(WALLET).pdf clean: rm -f $(WALLET).aux rm -f $(WALLET).log rm -f $(WALLET).lof rm -f $(WALLET).lol rm -f $(WALLET).lot rm -f $(WALLET).pdf rm -f $(WALLET).toc rm -f $(WALLET).out rm -f $(WALLET).tex rm -f $(WALLET).png pdf: $(WALLET).pdf run: pdf $(XPDF) $(WALLET).pdf $(WALLET).pdf: $(WALLET).tex $(WALLET).png $(LATEX) $(WALLET) $(WALLET).tex: $(WALLET).json ./gentex.pl $< >$@ $(WALLET).png: $(WALLET).json $(QRENCODE) -r $< -o $@ -s 4