Use org-icalendar-verify-function only if non-nil
[org-mode/org-tableheadings.git] / Makefile
blob6e45f53cf71c0527bb6de75a9d4678d7debe7c1d
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.
31 BATCH=$(EMACS) -batch -q -no-site-file -eval \
32 "(progn (add-to-list (quote load-path) \"$(lispdir)\") (add-to-list (quote load-path) (expand-file-name \"./lisp/\")))"
34 # Specify the byte-compiler for compiling org-mode files
35 ELC= $(BATCH) -f batch-byte-compile
37 # How to make a pdf file from a texinfo file
38 TEXI2PDF = texi2pdf
40 # How to create directories
41 MKDIR = mkdir -p
43 # How to create the info files from the texinfo file
44 MAKEINFO = makeinfo
46 # How to create the HTML file
47 TEXI2HTML = makeinfo --html --number-sections
49 # How to copy the lisp files and elc files to their distination.
50 CP = cp -p
52 # Name of the program to install info files
53 INSTALL_INFO=install-info
55 ##----------------------------------------------------------------------
56 ## BELOW THIS LINE ON YOUR OWN RISK!
57 ##----------------------------------------------------------------------
59 # The following variables need to be defined by the maintainer
60 LISPF = org.el \
61 org-agenda.el \
62 org-ascii.el \
63 org-attach.el \
64 org-archive.el \
65 org-bbdb.el \
66 org-bibtex.el \
67 org-clock.el \
68 org-colview.el \
69 org-colview-xemacs.el \
70 org-compat.el \
71 org-crypt.el \
72 org-exp.el \
73 org-exp-blocks.el \
74 org-docbook.el \
75 org-faces.el \
76 org-feed.el \
77 org-footnote.el \
78 org-freemind.el \
79 org-gnus.el \
80 org-habit.el \
81 org-html.el \
82 org-icalendar.el \
83 org-id.el \
84 org-indent.el \
85 org-info.el \
86 org-inlinetask.el \
87 org-jsinfo.el \
88 org-irc.el \
89 org-latex.el \
90 org-list.el \
91 org-mac-message.el \
92 org-macs.el \
93 org-mew.el \
94 org-mhe.el \
95 org-mobile.el \
96 org-mouse.el \
97 org-publish.el \
98 org-plot.el \
99 org-protocol.el \
100 org-remember.el \
101 org-rmail.el \
102 org-src.el \
103 org-table.el \
104 org-timer.el \
105 org-vm.el \
106 org-w3m.el \
107 org-wl.el \
108 org-xoxo.el
110 LISPFILES0 = $(LISPF:%=lisp/%)
111 LISPFILES = $(LISPFILES0) lisp/org-install.el
112 ELCFILES0 = $(LISPFILES0:.el=.elc)
113 ELCFILES = $(LISPFILES:.el=.elc)
114 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir doc/.nosearch
115 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
116 TEXIFILES = doc/org.texi
117 INFOFILES = doc/org
120 .SUFFIXES: .el .elc .texi
121 SHELL = /bin/sh
123 # Additional distribution files
124 DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
125 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
127 default: $(ELCFILES)
129 all: $(ELCFILES) $(INFOFILES)
131 up2: update
132 sudo ${MAKE} install
134 update:
135 git pull
136 ${MAKE} clean
137 ${MAKE} all
139 compile: $(ELCFILES0)
141 install: install-lisp
143 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf
146 ${MAKE} pdf && open doc/org.pdf
149 ${MAKE} card && gv doc/orgcard.ps
151 install-lisp: $(LISPFILES) $(ELCFILES)
152 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
153 $(CP) $(LISPFILES) $(lispdir)
154 $(CP) $(ELCFILES) $(lispdir)
156 install-info: $(INFOFILES)
157 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
158 $(CP) $(INFOFILES) $(infodir)
159 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
161 install-info-debian: $(INFOFILES)
162 $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
164 install-noutline: xemacs/noutline.elc
165 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
166 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
168 autoloads: lisp/org-install.el
170 lisp/org-install.el: $(LISPFILES0) Makefile
171 $(BATCH) --eval "(require 'autoload)" \
172 --eval '(find-file "org-install.el")' \
173 --eval '(erase-buffer)' \
174 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
175 --eval '(insert "\n(provide (quote org-install))\n")' \
176 --eval '(save-buffer)'
177 mv org-install.el lisp
179 xemacs/noutline.elc: xemacs/noutline.el
181 doc/org: doc/org.texi
182 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
184 doc/org.pdf: doc/org.texi
185 (cd doc; $(TEXI2PDF) org.texi)
187 doc/org.html: doc/org.texi
188 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
189 UTILITIES/manfull.pl doc/org.html
191 doc/orgcard.dvi: doc/orgcard.tex
192 (cd doc; tex orgcard.tex)
194 doc/orgcard.pdf: doc/orgcard.dvi
195 dvips -q -f -t landscape doc/orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard.pdf -c .setpdfwrite -
197 doc/orgcard.ps: doc/orgcard.dvi
198 dvips -t landscape -o doc/orgcard.ps doc/orgcard.dvi
200 doc/orgcard_letter.dvi: doc/orgcard.tex
201 perl -pe 's/letterpaper=0/letterpaper=1/' doc/orgcard.tex > doc/orgcard_letter.tex
202 (cd doc; tex orgcard_letter.tex)
204 doc/orgcard_letter.pdf: doc/orgcard_letter.dvi
205 dvips -q -f -t landscape doc/orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard_letter.pdf -c .setpdfwrite -
207 doc/orgcard_letter.ps: doc/orgcard_letter.dvi
208 dvips -t landscape -o doc/orgcard_letter.ps doc/orgcard_letter.dvi
210 # Below here are special targets for maintenance only
212 updateweb:
213 ssh cdominik@caprisun.dreamhost.com 'pull-worg-org.sh && publish-worg-org.sh'
215 html: doc/org.html
217 html_manual: doc/org.texi
218 rm -rf doc/manual
219 mkdir doc/manual
220 $(TEXI2HTML) -o doc/manual doc/org.texi
221 UTILITIES/mansplit.pl doc/manual/*.html
223 info: doc/org
225 pdf: doc/org.pdf
227 card: doc/orgcard.pdf doc/orgcard.ps doc/orgcard_letter.pdf doc/orgcard_letter.ps
229 distfile:
230 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
231 touch doc/org.texi doc/orgcard.tex # force update
232 ${MAKE} cleancontrib
233 ${MAKE} info
234 ${MAKE} doc
235 ${MAKE} lisp/org-install.el
236 rm -rf org-$(TAG) org-$(TAG).zip
237 $(MKDIR) org-$(TAG)
238 $(MKDIR) org-$(TAG)/xemacs
239 $(MKDIR) org-$(TAG)/doc
240 $(MKDIR) org-$(TAG)/lisp
241 cp -r $(LISPFILES) org-$(TAG)/lisp
242 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
243 cp -r $(DISTFILES_extra) org-$(TAG)/
244 cp -r README_DIST org-$(TAG)/README
245 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
246 cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
247 zip -r org-$(TAG).zip org-$(TAG)
248 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
250 release:
251 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
252 ${MAKE} distfile
253 ${MAKE} doc
254 UTILITIES/gplmanual.pl
255 ${MAKE} html_manual
256 rm -rf RELEASEDIR
257 $(MKDIR) RELEASEDIR
258 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
259 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
260 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
261 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
263 upload_release:
264 rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
266 upload_manual:
267 rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
269 snap:
270 ${MAKE} release TAG=snapshot
271 scp RELEASEDIR/org-snapshot.zip cdominik@orgmode.org:orgmode.org/
272 scp RELEASEDIR/org-snapshot.tar.gz cdominik@orgmode.org:orgmode.org/
273 ${MAKE} cleanrel
275 relup0:
276 ${MAKE} release
277 ${MAKE} upload_release
279 relup:
280 ${MAKE} release
281 ${MAKE} upload_release
282 ${MAKE} upload_manual
285 grep -e '(debug)' lisp/*el
287 cleancontrib:
288 find contrib -name \*~ -exec rm {} \;
290 cleanelc:
291 rm -f $(ELCFILES)
292 cleandoc:
293 (cd doc; rm -f org.pdf org org.html orgcard.pdf orgcard.ps)
294 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
295 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
296 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
297 (cd doc; rm -rf manual)
299 cleanrel:
300 rm -rf RELEASEDIR
301 rm -rf org-6.*
302 rm -rf org-6*zip org-6*tar.gz org-snapshot*
304 clean:
305 ${MAKE} cleanelc
306 ${MAKE} cleandoc
307 ${MAKE} cleanrel
308 rm -f *~ */*~ */*/*~
310 cleanall:
311 ${MAKE} clean
312 rm -f lisp/org-install.el
314 .el.elc:
315 $(ELC) $<
318 push:
319 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
321 pushtag:
322 git-tag -m "Adding tag" -a $(TAG)
323 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
325 pushreleasetag:
326 git-tag -m "Adding release tag" -a release_$(TAG)
327 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
329 dummy:
330 echo ${prefix}
332 # Dependencies
334 lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
335 lisp/org-agenda.elc: lisp/org.el
336 lisp/org-ascii.elc: lisp/org-exp.el
337 lisp/org-attach.elc: lisp/org.el lisp/org-id.el
338 lisp/org-archive.elc: lisp/org.el
339 lisp/org-bbdb.elc: lisp/org.el
340 lisp/org-bibtex.elc: lisp/org.el
341 lisp/org-clock.elc: lisp/org.el
342 lisp/org-colview.elc: lisp/org.el
343 lisp/org-colview-xemacs.elc: lisp/org.el
344 lisp/org-compat.elc: lisp/org-macs.el
345 lisp/org-crypt.elc: lisp/org-crypt.el lisp/org.el
346 lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
347 lisp/org-exp-blocks.elc: lisp/org.el
348 lisp/org-latex.elc: lisp/org.el lisp/org-exp.el
349 lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
350 lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
351 lisp/org-feed.elc: lisp/org.el
352 lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
353 lisp/org-freemind.elc: lisp/org.el
354 lisp/org-gnus.elc: lisp/org.el
355 lisp/org-html.elc: lisp/org-exp.el
356 lisp/org-habit.elc: lisp/org.el lisp/org-agenda.el
357 lisp/org-icalendar.elc: lisp/org-exp.el
358 lisp/org-id.elc: lisp/org.el
359 lisp/org-indent.elc: lisp/org.el lisp/org-macs.el lisp/org-compat.el
360 lisp/org-info.elc: lisp/org.el
361 lisp/org-inlinetask.elc:
362 lisp/org-irc.elc: lisp/org.el
363 lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
364 lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
365 lisp/org-mac-message.elc: lisp/org.el
366 lisp/org-macs.elc:
367 lisp/org-mew.elc: lisp/org.el
368 lisp/org-mhe.elc: lisp/org.el
369 lisp/org-mobile.elc: lisp/org.el
370 lisp/org-mouse.elc: lisp/org.el
371 lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
372 lisp/org-publish.elc:
373 lisp/org-protocol.elc: lisp/org.el
374 lisp/org-remember.elc: lisp/org.el
375 lisp/org-rmail.elc: lisp/org.el
376 lisp/org-src.elc: lisp/org-macs.el lisp/org-compat.el
377 lisp/org-table.elc: lisp/org.el
378 lisp/org-timer.elc: lisp/org.el
379 lisp/org-vm.elc: lisp/org.el
380 lisp/org-w3m.elc: lisp/org.el
381 lisp/org-wl.elc: lisp/org.el
382 lisp/org-xoxo.elc: lisp/org-exp.el