12345678910111213141516171819202122 |
- EMACS=emacs
- BATCH_EMACS=$(EMACS) --batch -Q -l init.el
- %.html: %.org
- $(BATCH_EMACS) $*.org -f org-html-export-to-html
- %.tex: %.org init.el
- $(BATCH_EMACS) $*.org -f org-latex-export-to-latex
- %.el: %.org init.el
- $(BATCH_EMACS) $*.org -f org-babel-tangle
- # two fancier alternatives to the above which provide a default file
- # name and encode language information
- %.el: %.org init.el
- $(BATCH_EMACS) $*.org \
- --eval '(org-babel-tangle nil "$@" (quote emacs-lisp))'
- %.sh: %.org init.el
- $(BATCH_EMACS) $*.org \
- --eval '(org-babel-tangle nil "$@" (quote bash))'
|