Initialize org-clock-notification-was-shown on clock-in
[org-mode.git] / Makefile
blobe867e6b030110ad2b2c26dbdbdfb8448c7713b38
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) (expand-file-name \"./lisp/\")) \
33 (add-to-list (quote load-path) \"$(lispdir)\"))"
35 # Specify the byte-compiler for compiling org-mode files
36 ELC= $(BATCH) -f batch-byte-compile
38 # How to make a pdf file from a texinfo file
39 TEXI2PDF = texi2pdf
41 # How to create directories
42 MKDIR = mkdir -p
44 # How to create the info files from the texinfo file
45 MAKEINFO = makeinfo
47 # How to create the HTML file
48 TEXI2HTML = makeinfo --html --number-sections
50 # How to copy the lisp files and elc files to their distination.
51 CP = cp -p
53 # Name of the program to install info files
54 INSTALL_INFO=install-info
56 ##----------------------------------------------------------------------
57 ## BELOW THIS LINE ON YOUR OWN RISK!
58 ##----------------------------------------------------------------------
60 # The following variables need to be defined by the maintainer
61 LISPF = org.el \
62 org-agenda.el \
63 org-ascii.el \
64 org-attach.el \
65 org-archive.el \
66 org-bbdb.el \
67 org-bibtex.el \
68 org-clock.el \
69 org-colview.el \
70 org-colview-xemacs.el \
71 org-compat.el \
72 org-exp.el \
73 org-docbook.el \
74 org-faces.el \
75 org-feed.el \
76 org-footnote.el \
77 org-gnus.el \
78 org-html.el \
79 org-icalendar.el \
80 org-id.el \
81 org-info.el \
82 org-inlinetask.el \
83 org-jsinfo.el \
84 org-irc.el \
85 org-latex.el \
86 org-list.el \
87 org-mac-message.el \
88 org-macs.el \
89 org-mew.el \
90 org-mhe.el \
91 org-mouse.el \
92 org-publish.el \
93 org-plot.el \
94 org-protocol.el \
95 org-remember.el \
96 org-rmail.el \
97 org-src.el \
98 org-table.el \
99 org-timer.el \
100 org-vm.el \
101 org-w3m.el \
102 org-wl.el \
103 org-xoxo.el
105 LISPFILES0 = $(LISPF:%=lisp/%)
106 LISPFILES = $(LISPFILES0) lisp/org-install.el
107 ELCFILES0 = $(LISPFILES0:.el=.elc)
108 ELCFILES = $(LISPFILES:.el=.elc)
109 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir doc/.nosearch
110 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
111 TEXIFILES = doc/org.texi
112 INFOFILES = doc/org
115 .SUFFIXES: .el .elc .texi
116 SHELL = /bin/sh
118 # Additional distribution files
119 DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
120 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
122 default: $(ELCFILES)
124 all: $(ELCFILES) $(INFOFILES)
126 up2: update
127 sudo ${MAKE} install
129 update:
130 git pull
131 ${MAKE} clean
132 ${MAKE} all
134 compile: $(ELCFILES0)
136 install: install-lisp
138 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf
141 ${MAKE} pdf && open doc/org.pdf
144 ${MAKE} card && gv doc/orgcard.ps
146 install-lisp: $(LISPFILES) $(ELCFILES)
147 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
148 $(CP) $(LISPFILES) $(lispdir)
149 $(CP) $(ELCFILES) $(lispdir)
151 install-info: $(INFOFILES)
152 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
153 $(CP) $(INFOFILES) $(infodir)
154 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
156 install-info-debian: $(INFOFILES)
157 $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
159 install-noutline: xemacs/noutline.elc
160 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
161 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
163 autoloads: lisp/org-install.el
165 lisp/org-install.el: $(LISPFILES0) Makefile
166 $(BATCH) --eval "(require 'autoload)" \
167 --eval '(find-file "org-install.el")' \
168 --eval '(erase-buffer)' \
169 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
170 --eval '(insert "\n(provide (quote org-install))\n")' \
171 --eval '(save-buffer)'
172 mv org-install.el lisp
174 xemacs/noutline.elc: xemacs/noutline.el
176 doc/org: doc/org.texi
177 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
179 doc/org.pdf: doc/org.texi
180 (cd doc; $(TEXI2PDF) org.texi)
182 doc/org.html: doc/org.texi
183 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
184 UTILITIES/manfull.pl doc/org.html
186 doc/orgcard.dvi: doc/orgcard.tex
187 (cd doc; tex orgcard.tex)
189 doc/orgcard.pdf: doc/orgcard.dvi
190 dvips -q -f -t landscape doc/orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard.pdf -c .setpdfwrite -
192 doc/orgcard.ps: doc/orgcard.dvi
193 dvips -t landscape -o doc/orgcard.ps doc/orgcard.dvi
195 doc/orgcard_letter.dvi: doc/orgcard.tex
196 perl -pe 's/letterpaper=0/letterpaper=1/' doc/orgcard.tex > doc/orgcard_letter.tex
197 (cd doc; tex orgcard_letter.tex)
199 doc/orgcard_letter.pdf: doc/orgcard_letter.dvi
200 dvips -q -f -t landscape doc/orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard_letter.pdf -c .setpdfwrite -
202 doc/orgcard_letter.ps: doc/orgcard_letter.dvi
203 dvips -t landscape -o doc/orgcard_letter.ps doc/orgcard_letter.dvi
205 # Below here are special targets for maintenance only
207 updateweb:
208 ssh cdominik@caprisun.dreamhost.com 'pull-worg-org.sh && publish-worg-org.sh'
210 html: doc/org.html
212 html_manual: doc/org.texi
213 rm -rf doc/manual
214 mkdir doc/manual
215 $(TEXI2HTML) -o doc/manual doc/org.texi
216 UTILITIES/mansplit.pl doc/manual/*.html
218 info: doc/org
220 pdf: doc/org.pdf
222 card: doc/orgcard.pdf doc/orgcard.ps doc/orgcard_letter.pdf doc/orgcard_letter.ps
224 distfile:
225 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
226 touch doc/org.texi doc/orgcard.tex # force update
227 ${MAKE} cleancontrib
228 ${MAKE} info
229 ${MAKE} doc
230 ${MAKE} lisp/org-install.el
231 rm -rf org-$(TAG) org-$(TAG).zip
232 $(MKDIR) org-$(TAG)
233 $(MKDIR) org-$(TAG)/xemacs
234 $(MKDIR) org-$(TAG)/doc
235 $(MKDIR) org-$(TAG)/lisp
236 cp -r $(LISPFILES) org-$(TAG)/lisp
237 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
238 cp -r $(DISTFILES_extra) org-$(TAG)/
239 cp -r README_DIST org-$(TAG)/README
240 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
241 cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
242 zip -r org-$(TAG).zip org-$(TAG)
243 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
245 release:
246 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
247 ${MAKE} distfile
248 ${MAKE} doc
249 UTILITIES/gplmanual.pl
250 ${MAKE} html_manual
251 rm -rf RELEASEDIR
252 $(MKDIR) RELEASEDIR
253 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
254 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
255 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
256 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
258 upload_release:
259 rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
261 upload_manual:
262 rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
264 snap:
265 ${MAKE} release TAG=snapshot
266 scp RELEASEDIR/org-snapshot.zip cdominik@orgmode.org:orgmode.org/
267 scp RELEASEDIR/org-snapshot.tar.gz cdominik@orgmode.org:orgmode.org/
268 ${MAKE} cleanrel
270 relup0:
271 ${MAKE} release
272 ${MAKE} upload_release
274 relup:
275 ${MAKE} release
276 ${MAKE} upload_release
277 ${MAKE} upload_manual
280 grep -e '(debug)' lisp/*el
282 cleancontrib:
283 find contrib -name \*~ -exec rm {} \;
285 cleanelc:
286 rm -f $(ELCFILES)
287 cleandoc:
288 (cd doc; rm -f org.pdf org org.html orgcard.pdf orgcard.ps)
289 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
290 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
291 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
292 (cd doc; rm -rf manual)
294 cleanrel:
295 rm -rf RELEASEDIR
296 rm -rf org-6.*
297 rm -rf org-6*zip org-6*tar.gz org-snapshot*
299 clean:
300 ${MAKE} cleanelc
301 ${MAKE} cleandoc
302 ${MAKE} cleanrel
303 rm -f *~ */*~ */*/*~
305 cleanall:
306 ${MAKE} clean
307 rm -f lisp/org-install.el
309 .el.elc:
310 $(ELC) $<
313 push:
314 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
316 pushtag:
317 git-tag -m "Adding tag" -a $(TAG)
318 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
320 pushreleasetag:
321 git-tag -m "Adding release tag" -a release_$(TAG)
322 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
324 dummy:
325 echo ${prefix}
327 # Dependencies
329 lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
330 lisp/org-agenda.elc: lisp/org.el
331 lisp/org-ascii.elc: lisp/org-exp.el
332 lisp/org-attach.elc: lisp/org.el lisp/org-id.el
333 lisp/org-archive.elc: lisp/org.el
334 lisp/org-bbdb.elc: lisp/org.el
335 lisp/org-bibtex.elc: lisp/org.el
336 lisp/org-clock.elc: lisp/org.el
337 lisp/org-colview.elc: lisp/org.el
338 lisp/org-colview-xemacs.elc: lisp/org.el
339 lisp/org-compat.elc: lisp/org-macs.el
340 lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
341 lisp/org-latex.elc: lisp/org.el lisp/org-exp.el
342 lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
343 lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
344 lisp/org-feed.elc: lisp/org.el
345 lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
346 lisp/org-gnus.elc: lisp/org.el
347 lisp/org-html.elc: lisp/org-exp.el
348 lisp/org-icalendar.elc: lisp/org-exp.el
349 lisp/org-id.elc: lisp/org.el
350 lisp/org-info.elc: lisp/org.el
351 lisp/org-inlinetask.elc:
352 lisp/org-irc.elc: lisp/org.el
353 lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
354 lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
355 lisp/org-mac-message.elc: lisp/org.el
356 lisp/org-macs.elc:
357 lisp/org-mew.elc: lisp/org.el
358 lisp/org-mhe.elc: lisp/org.el
359 lisp/org-mouse.elc: lisp/org.el
360 lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
361 lisp/org-publish.elc:
362 lisp/org-protocol.elc: lisp/org.el
363 lisp/org-remember.elc: lisp/org.el
364 lisp/org-rmail.elc: lisp/org.el
365 lisp/org-src.elc: lisp/org-macs.el lisp/org-compat.el
366 lisp/org-table.elc: lisp/org.el
367 lisp/org-timer.elc: lisp/org.el
368 lisp/org-vm.elc: lisp/org.el
369 lisp/org-w3m.elc: lisp/org.el
370 lisp/org-wl.elc: lisp/org.el
371 lisp/org-xoxo.elc: lisp/org-exp.el