TEXI2PDF+=--tidy BEXP=$(BATCH) \ --eval '(add-to-list '"'"'load-path "../lisp")' EXTEXI= EXHTML= $(BTEST_POST) 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: org.info html: orgmanual org.html pdf: org.pdf org.texi: orgmanual.org $(BEXP) $(EXTEXI) $< $(ORG2TEXI) org.info: org.texi $(MAKEINFO) --no-split $< -o $@ # LANG=C # to work around a bug in texi2dvi org.pdf: LC_ALL=C org.pdf: LANG=C org.pdf: org.texi $(TEXI2PDF) $< orgmanual: org.texi $(TEXI2HTML) $< -o $@ org.html: orgmanual.org $(BEXP) $(EXHTML) $< $(ORG2HTML) clean: $(RM) org *.pdf *.html *.texi *.info *~ \ *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \ *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps cleanall: clean $(RMR) org.t2d orgmanual