Skip to content

Instantly share code, notes, and snippets.

@Happy-Ferret
Forked from fogus/org-gen.mk
Created March 28, 2017 12:00
Show Gist options
  • Save Happy-Ferret/2be22e0c9410f380a9bfc9b9d6660b26 to your computer and use it in GitHub Desktop.
Save Happy-Ferret/2be22e0c9410f380a9bfc9b9d6660b26 to your computer and use it in GitHub Desktop.
INIT=.emacs.el
$(INIT): TC3F.org
time emacs --batch --no-init-file --load .org-mode.emacs.el --find-file TC3F.org --funcall org-babel-tangle --kill
TC3F.txt: $(INIT)
time emacs --batch --no-init-file --load .org-mode.emacs.el --find-file TC3F.org --funcall org-ascii-export-to-ascii --kill
TC3F.html: $(INIT)
time emacs --batch --no-init-file --load .org-mode.emacs.el --find-file TC3F.org --funcall org-html-export-to-html --kill
TC3F.pdf: $(INIT)
time emacs --batch --no-init-file --load .org-mode.emacs.el --find-file TC3F.org --funcall org-latex-export-to-pdf --kill
all: TC3F.txt TC3F.html TC3F.pdf
clean:
rm $(INIT)
rm TC3F.txt
rm TC3F.html
rm TC3F.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment