Makefile 354 B

123456789101112131415161718192021
  1. -include local.mk
  2. DOCTEX=$(patsubst %.pdf,%.tex,$(DOC))
  3. .PHONY: all clean install
  4. all: $(DOC)
  5. %.tex: %.org
  6. HOME=. emacs -q -Q -nw --batch --load init.el --eval "(progn (local/org-latex-export \"$<\") (kill-emacs))"
  7. %.pdf: %.tex
  8. latexmk -pdf $<
  9. clean:
  10. latexmk -CA
  11. $(RM) $(DOCTEX)
  12. install: $(DOC)
  13. mkdir -pv ${out}/nix-support/
  14. cp -t ${out} $^