Skip to content

Instantly share code, notes, and snippets.

@nanounanue
Forked from fogus/org-gen.mk
Created April 8, 2018 18:13
Show Gist options
  • Save nanounanue/b926a57665d6d5e997f1d934dfa2dbea to your computer and use it in GitHub Desktop.
Save nanounanue/b926a57665d6d5e997f1d934dfa2dbea 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