From 5511736802ced4e08bd432ebdb12dfeebe282a22 Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Sun, 10 Mar 2013 12:07:19 +0100 Subject: [PATCH] add Makefile, org-version.inc (symbolic link), modify .gitignore ignore make products --- .gitignore | 7 ++++--- Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ org-version.inc | 1 + 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 Makefile create mode 120000 org-version.inc diff --git a/.gitignore b/.gitignore index 1f940d9..fde636e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,8 @@ *.*~ *.texi *.info -Makefile init.el export-test.org -org-version.inc *.aux *.cp *.fn @@ -17,4 +15,7 @@ org-version.inc *.vr *.cps *.pgs -.DS_Store \ No newline at end of file +.DS_Store +/orgmanual.html +/orgmanual.t2d/ +/orgmanual/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7c45664 --- /dev/null +++ b/Makefile @@ -0,0 +1,49 @@ +TEXI2PDF+=--tidy +BEXP=$(BATCH) \ + --eval '(add-to-list '"'"'load-path "../lisp")' \ + --eval '(setq org-footnote-auto-adjust nil)' +EXTEXI= -l ox-texinfo \ + --eval '(add-to-list '"'"'org-export-snippet-translation-alist '"'"'("info" . "texinfo"))' +EXHTML= -l ox-html \ + $(BTEST_POST) \ + --eval '(add-to-list '"'"'org-export-snippet-translation-alist '"'"'("info" . "texinfo"))' +ORG2TEXI=-f org-texinfo-export-to-texinfo +ORG2HTML=-f org-html-export-to-html +ORG2INFO=--eval "(org-texinfo-compile \"./$<\")" + +.SUFFIXES: # we don't need default suffix rules +ifeq ($(MAKELEVEL), 0) + $(error This make needs to be started as a sub-make from the toplevel directory.) +endif +.PHONY: all info html pdf + +all: $(ORG_MAKE_DOC) + +info: orgmanual.info + +html: orgmanual orgmanual.html + +pdf: orgmanual.pdf + +orgmanual.texi: orgmanual.org + $(BEXP) $(EXTEXI) $< $(ORG2TEXI) +orgmanual.info: orgmanual.texi + $(MAKEINFO) --no-split $< -o $@ +orgmanual.pdf: LC_ALL=C # work around a bug in texi2dvi +orgmanual.pdf: LANG=C # work around a bug in texi2dvi +orgmanual.pdf: orgmanual.texi + $(TEXI2PDF) $< +orgmanual: orgmanual.texi + $(TEXI2HTML) $< +orgmanual.html: orgmanual.org + $(BEXP) $(EXHTML) $< $(ORG2HTML) + +clean: + $(RM) org *.pdf *.html \ + *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \ + *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps +cleanall: clean + $(RMR) orgmanual.t2d orgmanual + + + diff --git a/org-version.inc b/org-version.inc new file mode 120000 index 0000000..fd0c05b --- /dev/null +++ b/org-version.inc @@ -0,0 +1 @@ +../doc/org-version.inc \ No newline at end of file -- 1.8.1.4