Makefile 395 B

12345678910111213141516
  1. publish: letter.pdf
  2. if [ ! -d "published" ]; then mkdir published; fi
  3. cp letter.pdf published/letter.pdf
  4. if [ ! -d "published/archive" ]; then mkdir published/archive/; fi
  5. cp letter.pdf published/archive/letter_$(shell date -u +"%Y-%m-%dT%H:%M:%SZ").pdf
  6. letter.pdf: letter.tex
  7. latexmk -pdf letter.tex
  8. start: view watch
  9. view:
  10. -zathura letter.pdf &!
  11. watch:
  12. latexmk -pdf -pvc letter.tex