Fix `org-backward-paragraph' on block opening line
[org-mode/org-tableheadings.git] / doc / Makefile
blobe17d4415b4d48e10a89dc9c7b5bb5ecaf6040926
1 .SUFFIXES: # we don't need default suffix rules
2 ifeq ($(MAKELEVEL), 0)
3 $(error This make needs to be started as a sub-make from the toplevel directory.)
4 endif
5 .PHONY: all info html pdf card manual guide install \
6 clean cleanall clean-install
8 all: $(ORG_MAKE_DOC)
10 info: org
12 html: org.html
14 pdf: org.pdf orgguide.pdf
16 card: orgcard.pdf orgcard_letter.pdf orgguide.pdf
18 ifneq ($(SERVERMK),)
19 manual guide::
20 -$(RMR) $@
21 $(MKDIR) $@
22 manual:: org.texi org-version.inc
23 $(TEXI2HTML) -o $@ $<
24 ../mk/mansplit.pl $@/*
25 guide:: orgguide.texi org-version.inc
26 $(TEXI2HTML) -o $@ $<
27 ../mk/guidesplit.pl $@/*
28 endif
30 org-version.inc: org.texi
31 @echo "org-version: $(ORGVERSION) ($(GITVERSION))"
32 @echo "@c automatically generated, do not edit" > org-version.inc
33 @echo "@set VERSION $(ORGVERSION) ($(GITVERSION))" >> org-version.inc
34 @echo "@set DATE $(DATE)" >> org-version.inc
36 org-version.tex: orgcard.tex
37 @printf "org-version: $(ORGVERSION) ($(GITVERSION))\n"
38 @printf "%% automatically generated, do not edit\n" > org-version.tex
39 @printf "\def\orgversionnumber{$(ORGVERSION)}\n" >> org-version.tex
40 @printf "\def\\\\versionyear{$(YEAR)}\n" >> org-version.tex
41 @printf "\def\year{$(YEAR)}\n" >> org-version.tex
43 install: org
44 if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ;
45 $(CP) org $(DESTDIR)$(infodir)
46 $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) org
48 clean:
49 $(RM) org *.pdf *.html *_letter.tex org-version.inc org-version.tex \
50 *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \
51 *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
52 cleanall: clean
53 $(RMR) guide manual
55 clean-install:
56 $(RM) $(DESTDIR)$(infodir)/org*
57 $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) --remove org
59 .SUFFIXES: .texi .tex .txt _letter.tex
61 %: %.texi org-version.inc
62 $(MAKEINFO) --no-split $< -o $@
64 # the following two lines work around a bug in some versions of texi2dvi
65 %.pdf: LC_ALL=C
66 %.pdf: LANG=C
67 %.pdf: %.texi org-version.inc
68 $(TEXI2PDF) $<
69 %.pdf: %.tex org-version.tex
70 PDFLATEX=$(PDFTEX) $(TEXI2PDF) $<
72 %.html: %.texi org-version.inc
73 $(TEXI2HTML) --no-split -o $@ $<
74 ifneq ($(SERVERMK),)
75 ../mk/manfull.pl $@
77 %.txt: %.tex
78 perl ../mk/orgcard2txt.pl $< > $@
79 endif
81 %_letter.tex: %.tex
82 $(BATCH) \
83 --eval '(add-to-list '"'"'load-path "../lisp")' \
84 --eval '(load "org-compat.el")' \
85 --eval '(load "../mk/org-fixup.el")' \
86 --eval '(org-make-letterformat "$(<F)" "$(@F)")'