Make `C-c |' work in orgtbl-mode.
[org-mode.git] / Makefile
blob656d9fb322061545220495a6eebea4718bb76f59
1 # Makefile - for the org-mode distribution
3 # Maintainer: Carsten Dominik <dominik@science.uva.nl>
4 # Version: VERSIONTAG
6 # To install org-mode, edit the Makefile, type `make', then `make install'.
7 # To create the PDF and HTML documentation files, type `make doc'.
9 ##----------------------------------------------------------------------
10 ## YOU MUST EDIT THE FOLLOWING LINES
11 ##----------------------------------------------------------------------
13 # Name of your emacs binary
14 EMACS=emacs
16 # Where local software is found
17 prefix=/usr/local
19 # Where local lisp files go.
20 lispdir = $(prefix)/share/emacs/site-lisp
22 # Where info files go.
23 infodir = $(prefix)/share/info
25 ##----------------------------------------------------------------------
26 ## YOU MAY NEED TO EDIT THESE
27 ##----------------------------------------------------------------------
29 # Using emacs in batch mode.
30 # BATCH=$(EMACS) -batch -q
31 # BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) \".\")"
33 BATCH=$(EMACS) -batch -q -eval \
34 "(progn (add-to-list (quote load-path) (expand-file-name \"./lisp/\")) \
35 (add-to-list (quote load-path) \"$(lispdir)\"))"
37 # Specify the byte-compiler for compiling org-mode files
38 ELC= $(BATCH) -f batch-byte-compile
40 # How to make a pdf file from a texinfo file
41 TEXI2PDF = texi2pdf
43 # How to create directories
44 MKDIR = mkdir -p
46 # How to create the info files from the texinfo file
47 MAKEINFO = makeinfo
49 # How to create the HTML file
50 TEXI2HTML = makeinfo --html --number-sections
52 # How to copy the lisp files and elc files to their distination.
53 CP = cp -p
55 # Name of the program to install info files
56 INSTALL_INFO=install-info
58 ##----------------------------------------------------------------------
59 ## BELOW THIS LINE ON YOUR OWN RISK!
60 ##----------------------------------------------------------------------
62 # The following variables need to be defined by the maintainer
63 LISPF = org.el \
64 org-agenda.el \
65 org-attach.el \
66 org-archive.el \
67 org-bbdb.el \
68 org-bibtex.el \
69 org-clock.el \
70 org-colview.el \
71 org-colview-xemacs.el \
72 org-compat.el \
73 org-exp.el \
74 org-export-latex.el \
75 org-faces.el \
76 org-gnus.el \
77 org-id.el \
78 org-info.el \
79 org-jsinfo.el \
80 org-irc.el \
81 org-list.el \
82 org-mac-message.el \
83 org-macs.el \
84 org-mew.el \
85 org-mhe.el \
86 org-mouse.el \
87 org-publish.el \
88 org-plot.el \
89 org-remember.el \
90 org-rmail.el \
91 org-table.el \
92 org-timer.el \
93 org-vm.el \
94 org-wl.el
96 LISPFILES0 = $(LISPF:%=lisp/%)
97 LISPFILES = $(LISPFILES0) lisp/org-install.el
98 ELCFILES0 = $(LISPFILES0:.el=.elc)
99 ELCFILES = $(LISPFILES:.el=.elc)
100 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir
101 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
102 TEXIFILES = doc/org.texi
103 INFOFILES = doc/org
106 .SUFFIXES: .el .elc .texi
107 SHELL = /bin/sh
109 # Additional distribution files
110 DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
111 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
113 default: $(ELCFILES)
115 all: $(ELCFILES) $(INFOFILES)
117 compile: $(ELCFILES0)
119 install: install-lisp
121 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf
124 make pdf && open doc/org.pdf
127 make card && gv doc/orgcard.ps
129 install-lisp: $(LISPFILES) $(ELCFILES)
130 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
131 $(CP) $(LISPFILES) $(lispdir)
132 $(CP) $(ELCFILES) $(lispdir)
134 install-info: $(INFOFILES)
135 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
136 $(CP) $(INFOFILES) $(infodir)
137 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
139 install-noutline: xemacs/noutline.elc
140 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
141 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
143 autoloads: lisp/org-install.el
145 lisp/org-install.el: $(LISPFILES0) Makefile
146 $(BATCH) --eval "(require 'autoload)" \
147 --eval '(find-file "org-install.el")' \
148 --eval '(erase-buffer)' \
149 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
150 --eval '(insert "\n(provide (quote org-install))\n")' \
151 --eval '(save-buffer)'
152 mv org-install.el lisp
154 xemacs/noutline.elc: xemacs/noutline.el
156 doc/org: doc/org.texi
157 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
159 doc/org.pdf: doc/org.texi
160 (cd doc; $(TEXI2PDF) org.texi)
162 doc/org.html: doc/org.texi
163 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
165 doc/orgcard.dvi: doc/orgcard.tex
166 (cd doc; tex orgcard.tex)
168 doc/orgcard.pdf: doc/orgcard.dvi
169 dvips -q -f -t landscape doc/orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard.pdf -c .setpdfwrite -
171 doc/orgcard.ps: doc/orgcard.dvi
172 dvips -t landscape -o doc/orgcard.ps doc/orgcard.dvi
174 doc/orgcard_letter.dvi: doc/orgcard.tex
175 perl -pe 's/letterpaper=0/letterpaper=1/' doc/orgcard.tex > doc/orgcard_letter.tex
176 (cd doc; tex orgcard_letter.tex)
178 doc/orgcard_letter.pdf: doc/orgcard_letter.dvi
179 dvips -q -f -t landscape doc/orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard_letter.pdf -c .setpdfwrite -
181 doc/orgcard_letter.ps: doc/orgcard_letter.dvi
182 dvips -t landscape -o doc/orgcard_letter.ps doc/orgcard_letter.dvi
184 # Below here are special targets for maintenance only
186 updateweb:
187 ssh cdominik@caprisun.dreamhost.com 'pull-worg-org.sh && publish-worg-org.sh'
189 html: doc/org.html
191 html_manual: doc/org.texi
192 rm -rf doc/manual
193 mkdir doc/manual
194 $(TEXI2HTML) -o doc/manual doc/org.texi
196 info: doc/org
198 pdf: doc/org.pdf
200 card: doc/orgcard.pdf doc/orgcard.ps doc/orgcard_letter.pdf doc/orgcard_letter.ps
202 distfile:
203 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
204 touch doc/org.texi doc/orgcard.tex # force update
205 make cleancontrib
206 make info
207 make doc
208 make lisp/org-install.el
209 rm -rf org-$(TAG) org-$(TAG).zip
210 $(MKDIR) org-$(TAG)
211 $(MKDIR) org-$(TAG)/xemacs
212 $(MKDIR) org-$(TAG)/doc
213 $(MKDIR) org-$(TAG)/lisp
214 cp -r $(LISPFILES) org-$(TAG)/lisp
215 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
216 cp -r $(DISTFILES_extra) org-$(TAG)/
217 cp -r README_DIST org-$(TAG)/README
218 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
219 cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
220 zip -r org-$(TAG).zip org-$(TAG)
221 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
223 release:
224 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
225 make distfile
226 make doc
227 UTILITIES/gplmanual.pl
228 make html_manual
229 rm -rf RELEASEDIR
230 $(MKDIR) RELEASEDIR
231 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
232 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
233 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
234 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
236 upload_release:
237 (cd RELEASEDIR; lftp -f ../../org-mode-proprietary/ftp_upload_release_legito)
239 upload_manual:
240 lftp -f ../org-mode-proprietary/ftp_upload_manual_legito
242 relup0:
243 make release
244 make upload_release
246 relup:
247 make release
248 make upload_release
249 make upload_manual
252 grep -e '(debug)' lisp/*el
254 cleancontrib:
255 find contrib -name \*~ -exec rm {} \;
257 cleanelc:
258 rm -f $(ELCFILES)
259 cleandoc:
260 (cd doc; rm -f org.pdf org org.html orgcard.pdf orgcard.ps)
261 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
262 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
263 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
264 (cd doc; rm -rf manual)
266 cleanrel:
267 rm -rf RELEASEDIR
268 rm -rf org-6.*
269 rm -f org-6*zip org-6*tar.gz
271 clean:
272 make cleanelc
273 make cleandoc
274 make cleanrel
275 rm -f *~ */*~ */*/*~
277 cleanall:
278 make clean
279 rm -f lisp/org-install.el
281 .el.elc:
282 $(ELC) $<
285 push:
286 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
288 pushtag:
289 git-tag -m "Adding tag" -a $(TAG)
290 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
292 pushreleasetag:
293 git-tag -m "Adding release tag" -a release_$(TAG)
294 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
296 dummy:
297 echo ${prefix}
299 # Dependencies
301 lisp/org.elc: lisp/org-macs.elc lisp/org-compat.elc lisp/org-faces.elc
302 lisp/org-agenda.elc: lisp/org.elc
303 lisp/org-attach.elc: lisp/org.elc lisp/org-id.elc
304 lisp/org-archive.elc: lisp/org.elc
305 lisp/org-bbdb.elc: lisp/org.elc
306 lisp/org-bibtex.elc: lisp/org.elc
307 lisp/org-clock.elc: lisp/org.elc
308 lisp/org-colview.elc: lisp/org.elc
309 lisp/org-colview-xemacs.elc: lisp/org.elc
310 lisp/org-compat.elc: lisp/org-macs.elc
311 lisp/org-exp.elc: lisp/org.elc lisp/org-agenda.elc
312 lisp/org-export-latex.elc: lisp/org.elc lisp/org-exp.elc
313 lisp/org-faces.elc: lisp/org-macs.elc lisp/org-compat.elc
314 lisp/org-gnus.elc: lisp/org.elc
315 lisp/org-id.elc: lisp/org.elc
316 lisp/org-info.elc: lisp/org.elc
317 lisp/org-irc.elc: lisp/org.elc
318 lisp/org-jsinfo.elc: lisp/org.elc lisp/org-exp.elc
319 lisp/org-list.elc: lisp/org-macs.elc lisp/org-compat.elc
320 lisp/org-mac-message.elc: lisp/org.elc
321 lisp/org-macs.elc:
322 lisp/org-mew.elc: lisp/org.elc
323 lisp/org-mhe.elc: lisp/org.elc
324 lisp/org-mouse.elc: lisp/org.elc
325 lisp/org-plot.elc: lisp/org.elc lisp/org-exp.elc lisp/org-table.elc
326 lisp/org-publish.elc:
327 lisp/org-remember.elc: lisp/org.elc
328 lisp/org-rmail.elc: lisp/org.elc
329 lisp/org-table.elc: lisp/org.elc
330 lisp/org-timer.el: lisp/org.elc
331 lisp/org-vm.elc: lisp/org.elc
332 lisp/org-wl.elc: lisp/org.elc