Makefile (669B)
1 org = secushare 2 3 ORG_PATH = /usr/share/emacs/site-lisp/org-mode 4 INIT = (add-to-list 'load-path \"${ORG_PATH}\") (load-file \".init.el\") 5 6 all: pdf 7 8 pdf: FORCE 9 for f in ${org}; do \ 10 e="$$e (find-file \"$$f\") (org-mode) (org-export-as-pdf org-export-headline-levels)"; \ 11 done; \ 12 emacs -Q --batch --eval "(progn ${INIT} $$e)" 13 14 15 html: FORCE 16 for f in ${org}; do \ 17 e="$$e (find-file \"$$f\") (org-mode) (org-export-as-html-batch)"; \ 18 done; \ 19 emacs -Q --batch --eval "(progn ${INIT} $$e)" 20 21 latex: FORCE 22 for f in ${org}; do \ 23 e="$$e (find-file \"$$f\") (org-mode) (org-export-as-latex-batch)"; \ 24 done; \ 25 emacs -Q --batch --eval "(progn ${INIT} $$e)" 26 27 FORCE: