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