Skip to content

Instantly share code, notes, and snippets.

@fogus
Created June 20, 2014 13:00
Show Gist options
  • Save fogus/2eb23519b1ac66748efd to your computer and use it in GitHub Desktop.
Save fogus/2eb23519b1ac66748efd 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