Created
June 20, 2014 13:00
-
-
Save fogus/2eb23519b1ac66748efd to your computer and use it in GitHub Desktop.
A tiny org-mode literate programming Makefile from http://www.wisdomandwonder.com/article/8700/a-tiny-org-mode-literate-programming-makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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