You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
432 B

  1. # Tools
  2. LATEXMK = latexmk
  3. RM = rm -f
  4. # Project-specific settings
  5. DOCNAME = main
  6. # Targets
  7. all: doc
  8. doc: pdf
  9. pdf: $(DOCNAME).pdf
  10. # Rules
  11. %.pdf: %.tex
  12. $(LATEXMK) -lualatex -shell-escape -M -MP -MF $*.d $*
  13. mostlyclean:
  14. $(LATEXMK) -silent -c
  15. $(RM) *.bbl
  16. clean: mostlyclean
  17. $(LATEXMK) -silent -C
  18. $(RM) *.run.xml *.synctex.gz
  19. $(RM) *.d
  20. .PHONY: all clean doc mostlyclean pdf
  21. # Include auto-generated dependencies
  22. -include *.d