Make the link properties from org-protocol work in capture
[org-mode/org-mode-NeilSmithlineMods.git] / Makefile
blobf485b208180c03d33b5e5f8762f5b6c001ba07d9
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 "(setq load-path (cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))"
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
48 TEXI2HTMLNOPSLIT = makeinfo --html --no-split --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-beamer.el \
68 org-bibtex.el \
69 org-capture.el \
70 org-clock.el \
71 org-colview.el \
72 org-colview-xemacs.el \
73 org-compat.el \
74 org-crypt.el \
75 org-ctags.el \
76 org-datetree.el \
77 org-docview.el \
78 org-entities.el \
79 org-exp.el \
80 org-exp-blocks.el \
81 org-docbook.el \
82 org-faces.el \
83 org-feed.el \
84 org-footnote.el \
85 org-freemind.el \
86 org-gnus.el \
87 org-habit.el \
88 org-html.el \
89 org-icalendar.el \
90 org-id.el \
91 org-indent.el \
92 org-info.el \
93 org-inlinetask.el \
94 org-jsinfo.el \
95 org-irc.el \
96 org-latex.el \
97 org-list.el \
98 org-mac-message.el \
99 org-macs.el \
100 org-mew.el \
101 org-mhe.el \
102 org-mks.el \
103 org-mobile.el \
104 org-mouse.el \
105 org-publish.el \
106 org-plot.el \
107 org-protocol.el \
108 org-remember.el \
109 org-rmail.el \
110 org-src.el \
111 org-table.el \
112 org-taskjuggler.el \
113 org-timer.el \
114 org-vm.el \
115 org-w3m.el \
116 org-wl.el \
117 org-xoxo.el
119 LISPFILES0 = $(LISPF:%=lisp/%)
120 LISPFILES = $(LISPFILES0) lisp/org-install.el
121 ELCFILES0 = $(LISPFILES0:.el=.elc)
122 ELCFILES = $(LISPFILES:.el=.elc)
123 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir \
124 doc/pdflayout.sty doc/.nosearch \
125 doc/orgguide.texi doc/orgguide.pdf
126 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
127 TEXIFILES = doc/org.texi
128 INFOFILES = doc/org
131 .SUFFIXES: .el .elc .texi
132 SHELL = /bin/sh
134 # Additional distribution files
135 DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
136 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
138 default: $(ELCFILES)
140 all: $(ELCFILES) $(INFOFILES)
142 up2: update
143 sudo ${MAKE} install
145 update:
146 git pull
147 ${MAKE} clean
148 ${MAKE} all
150 compile: $(ELCFILES0)
152 install: install-lisp
154 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgguide.pdf
157 ${MAKE} pdf && open doc/org.pdf
160 ${MAKE} pdf && open doc/orgguide.pdf
162 install-lisp: $(LISPFILES) $(ELCFILES)
163 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
164 $(CP) $(LISPFILES) $(lispdir)
165 $(CP) $(ELCFILES) $(lispdir)
167 install-info: $(INFOFILES)
168 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
169 $(CP) $(INFOFILES) $(infodir)
170 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
172 install-info-debian: $(INFOFILES)
173 $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
175 install-noutline: xemacs/noutline.elc
176 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
177 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
179 autoloads: lisp/org-install.el
181 lisp/org-install.el: $(LISPFILES0) Makefile
182 $(BATCH) --eval "(require 'autoload)" \
183 --eval '(find-file "org-install.el")' \
184 --eval '(erase-buffer)' \
185 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
186 --eval '(insert "\n(provide (quote org-install))\n")' \
187 --eval '(save-buffer)'
188 mv org-install.el lisp
190 xemacs/noutline.elc: xemacs/noutline.el
192 doc/org: doc/org.texi
193 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
195 doc/org.pdf: doc/org.texi
196 (cd doc; $(TEXI2PDF) org.texi)
198 doc/orgguide.pdf: doc/orgguide.texi
199 (cd doc; $(TEXI2PDF) orgguide.texi)
201 doc/org.html: doc/org.texi
202 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
203 UTILITIES/manfull.pl doc/org.html
205 doc/orgcard.pdf: doc/orgcard.tex
206 (cd doc; pdftex orgcard.tex)
208 doc/orgcard.txt: doc/orgcard.tex
209 (cd doc; perl ../UTILITIES/orgcard2txt.pl orgcard.tex > orgcard.txt)
211 doc/orgcard_letter.tex: doc/orgcard.tex
212 perl -pe 's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
213 doc/orgcard.tex > doc/orgcard_letter.tex
215 doc/orgcard_letter.pdf: doc/orgcard_letter.tex
216 (cd doc; pdftex orgcard_letter.tex)
218 # Below here are special targets for maintenance only
220 updateweb:
221 ssh cdominik@orgmode.org 'pull-worg-org.sh && publish-worg-org.sh'
223 html: doc/org.html
225 html_manual: doc/org.texi
226 rm -rf doc/manual
227 mkdir doc/manual
228 $(TEXI2HTML) -o doc/manual doc/org.texi
229 UTILITIES/mansplit.pl doc/manual/*.html
231 html_guide: doc/orgguide.texi
232 rm -rf doc/guide
233 mkdir doc/guide
234 $(TEXI2HTML) -o doc/guide doc/orgguide.texi
235 UTILITIES/guidesplit.pl doc/guide/*.html
237 info: doc/org
239 pdf: doc/org.pdf doc/orgguide.pdf
241 card: doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgcard.txt
243 distfile:
244 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
245 touch doc/org.texi doc/orgcard.tex # force update
246 ${MAKE} cleancontrib
247 ${MAKE} info
248 ${MAKE} doc
249 ${MAKE} lisp/org-install.el
250 rm -rf org-$(TAG) org-$(TAG).zip
251 $(MKDIR) org-$(TAG)
252 $(MKDIR) org-$(TAG)/xemacs
253 $(MKDIR) org-$(TAG)/doc
254 $(MKDIR) org-$(TAG)/lisp
255 cp -r $(LISPFILES) org-$(TAG)/lisp
256 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
257 cp -r $(DISTFILES_extra) org-$(TAG)/
258 cp -r README_DIST org-$(TAG)/README
259 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
260 cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
261 zip -r org-$(TAG).zip org-$(TAG)
262 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
264 release:
265 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
266 ${MAKE} distfile
267 ${MAKE} doc
268 UTILITIES/gplmanual.pl
269 ${MAKE} html_manual
270 ${MAKE} html_guide
271 rm -rf RELEASEDIR
272 $(MKDIR) RELEASEDIR
273 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
274 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
275 cp doc/orgguide.pdf doc/orgcard.txt RELEASEDIR
276 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
277 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
279 upload_release:
280 rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
282 upload_manual:
283 rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
284 rsync -avuz --delete doc/guide/ cdominik@orgmode.org:orgmode.org/guide/
286 relup0:
287 ${MAKE} release
288 ${MAKE} upload_release
290 relup:
291 ${MAKE} release
292 ${MAKE} upload_release
293 ${MAKE} upload_manual
296 grep -e '(debug)' lisp/*el
298 cleancontrib:
299 find contrib -name \*~ -exec rm {} \;
301 cleanelc:
302 rm -f $(ELCFILES)
303 cleandoc:
304 (cd doc; rm -f org.pdf org org.html orgcard.pdf)
305 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
306 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
307 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
308 (cd doc; rm -rf manual)
310 cleanrel:
311 rm -rf RELEASEDIR
312 rm -rf org-6.*
313 rm -rf org-6*zip org-6*tar.gz
315 clean:
316 ${MAKE} cleanelc
317 ${MAKE} cleandoc
318 ${MAKE} cleanrel
319 rm -f *~ */*~ */*/*~
321 cleanall:
322 ${MAKE} clean
323 rm -f lisp/org-install.el
325 .el.elc:
326 $(ELC) $<
329 push:
330 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
332 pushtag:
333 git-tag -m "Adding tag" -a $(TAG)
334 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
336 pushreleasetag:
337 git-tag -m "Adding release tag" -a release_$(TAG)
338 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
340 dummy:
341 echo ${prefix}
343 # Dependencies
345 lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
346 lisp/org-agenda.elc: lisp/org.el
347 lisp/org-ascii.elc: lisp/org-exp.el
348 lisp/org-attach.elc: lisp/org.el lisp/org-id.el
349 lisp/org-archive.elc: lisp/org.el
350 lisp/org-bbdb.elc: lisp/org.el
351 lisp/org-beamer.elc: lisp/org.el
352 lisp/org-bibtex.elc: lisp/org.el
353 lisp/org-capture.elc: lisp/org.el lisp/org-mks.el
354 lisp/org-clock.elc: lisp/org.el
355 lisp/org-colview.elc: lisp/org.el
356 lisp/org-colview-xemacs.elc: lisp/org.el
357 lisp/org-compat.elc: lisp/org-macs.el
358 lisp/org-crypt.elc: lisp/org-crypt.el lisp/org.el
359 lisp/org-ctags.elc: lisp/org.el
360 lisp/org-datetree.elc: lisp/org.el
361 lisp/org-docview.elc: lisp/org.el
362 lisp/org-entities.elc:
363 lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
364 lisp/org-exp-blocks.elc: lisp/org.el
365 lisp/org-latex.elc: lisp/org.el lisp/org-exp.el lisp/org-beamer.el
366 lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
367 lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
368 lisp/org-feed.elc: lisp/org.el
369 lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
370 lisp/org-freemind.elc: lisp/org.el
371 lisp/org-gnus.elc: lisp/org.el
372 lisp/org-html.elc: lisp/org-exp.el
373 lisp/org-habit.elc: lisp/org.el lisp/org-agenda.el
374 lisp/org-icalendar.elc: lisp/org-exp.el
375 lisp/org-id.elc: lisp/org.el
376 lisp/org-indent.elc: lisp/org.el lisp/org-macs.el lisp/org-compat.el
377 lisp/org-info.elc: lisp/org.el
378 lisp/org-inlinetask.elc:
379 lisp/org-irc.elc: lisp/org.el
380 lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
381 lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
382 lisp/org-mac-message.elc: lisp/org.el
383 lisp/org-macs.elc:
384 lisp/org-mew.elc: lisp/org.el
385 lisp/org-mhe.elc: lisp/org.el
386 lisp/org-mks.elc:
387 lisp/org-mobile.elc: lisp/org.el
388 lisp/org-mouse.elc: lisp/org.el
389 lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
390 lisp/org-publish.elc:
391 lisp/org-protocol.elc: lisp/org.el
392 lisp/org-remember.elc: lisp/org.el
393 lisp/org-rmail.elc: lisp/org.el
394 lisp/org-src.elc: lisp/org-macs.el lisp/org-compat.el
395 lisp/org-table.elc: lisp/org.el
396 lisp/org-taskjuggler.elc: lisp/org.el lisp/org-exp.el
397 lisp/org-timer.elc: lisp/org.el
398 lisp/org-vm.elc: lisp/org.el
399 lisp/org-w3m.elc: lisp/org.el
400 lisp/org-wl.elc: lisp/org.el
401 lisp/org-xoxo.elc: lisp/org-exp.el