1 # Makefile - for the org-mode distribution
3 # Maintainer: Carsten Dominik <dominik@science.uva.nl>
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
16 # Where local software is found
19 # Where local lisp files go
20 lispdir
= $(prefix)/share
/emacs
/site-lisp
23 etcdir
= $(lispdir
)/..
/etc
25 # Where style files go
26 stylesdir
= $(etcdir
)/styles
29 infodir = $(prefix)/share
/info
31 ##----------------------------------------------------------------------
32 ## YOU MAY NEED TO EDIT THESE
33 ##----------------------------------------------------------------------
35 # Using emacs in batch mode.
37 BATCH
=$(EMACS
) -batch
-q
-no-site-file
-eval \
38 "(setq load-path (cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))"
40 # Specify the byte-compiler for compiling org-mode files
41 ELC
= $(BATCH
) -f batch-byte-compile
43 # How to make a pdf file from a texinfo file
46 # How to create directories
49 # How to create the info files from the texinfo file
52 # How to create the HTML file
53 TEXI2HTML
= makeinfo --html
--number-sections
54 TEXI2HTMLNOPSLIT
= makeinfo --html
--no-split
--number-sections
56 # How to copy the lisp files and elc files to their distination.
59 # Name of the program to install info files
60 INSTALL_INFO
=install-info
62 ##----------------------------------------------------------------------
63 ## BELOW THIS LINE ON YOUR OWN RISK!
64 ##----------------------------------------------------------------------
66 # The following variables need to be defined by the maintainer
78 org-colview-xemacs.el \
119 org-special-blocks.el \
174 LISPFILES0
= $(LISPF
:%=lisp
/%)
175 LISPFILES
= $(LISPFILES0
) lisp
/org-install.el
176 ELCFILES0
= $(LISPFILES0
:.el
=.elc
)
177 ELCFILES
= $(LISPFILES
:.el
=.elc
)
178 DOCFILES
= doc
/org.texi doc
/org.pdf doc
/org doc
/dir \
179 doc
/pdflayout.sty doc
/.nosearch \
180 doc
/orgguide.texi doc
/orgguide.pdf
181 CARDFILES
= doc
/orgcard.
tex doc
/orgcard.pdf doc
/orgcard_letter.pdf
182 TEXIFILES
= doc
/org.texi
184 STYLESFILES
= etc
/styles
/OrgOdtContentTemplate.xml etc
/styles
/OrgOdtStyles.xml
186 # Package Manager (ELPA)
187 PKG_TAG
= $(shell date
+%Y
%m
%d
)
188 PKG_DOC
= "Outline-based notes management and organizer"
191 PKG_FILES
= $(LISPFILES0
) \
198 doc
/orgcard_letter.pdf \
201 .SUFFIXES
: .el .elc .texi
204 # Additional distribution files
205 DISTFILES_extra
= Makefile request-assign-future.txt contrib etc
207 default
: $(ELCFILES
) $(ELCBFILES
)
209 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
219 compile
: $(ELCFILES0
) $(ELCBFILES
)
221 install: install-lisp install-etc
223 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf doc
/orgcard.txt
226 ${MAKE} pdf
&& open doc
/org.pdf
229 ${MAKE} pdf
&& open doc
/orgguide.pdf
231 install-lisp
: $(LISPFILES
) $(ELCFILES
)
232 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
233 $(CP
) $(LISPFILES
) $(lispdir
)
234 $(CP
) $(ELCFILES
) $(lispdir
)
236 install-info
: $(INFOFILES
)
237 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
238 $(CP
) $(INFOFILES
) $(infodir)
239 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
241 install-etc
: $(STYLESFILES
)
242 if
[ ! -d
$(stylesdir
) ]; then
$(MKDIR
) $(stylesdir
); else true
; fi
;
243 $(CP
) $(STYLESFILES
) $(stylesdir
)
245 autoloads
: lisp
/org-install.el
247 lisp
/org-install.el
: $(LISPFILES0
) Makefile
248 $(BATCH
) --eval
"(require 'autoload)" \
249 --eval
'(find-file "lisp/org-install.el")' \
250 --eval
'(erase-buffer)' \
251 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPF))))' \
252 --eval
'(insert "\n(provide (quote org-install))\n")' \
253 --eval
'(save-buffer)'
255 doc
/org
: doc
/org.texi
256 (cd doc
&& $(MAKEINFO
) --no-split org.texi
-o org
)
258 doc
/org.pdf
: doc
/org.texi
259 (cd doc
&& $(TEXI2PDF
) org.texi
)
261 doc
/orgguide.pdf
: doc
/orgguide.texi
262 (cd doc
&& $(TEXI2PDF
) orgguide.texi
)
264 doc
/org.html
: doc
/org.texi
265 (cd doc
&& $(TEXI2HTML
) --no-split
-o org.html org.texi
)
266 UTILITIES
/manfull.pl doc
/org.html
268 doc
/orgcard.pdf
: doc
/orgcard.
tex
269 (cd doc
&& pdftex orgcard.
tex)
271 doc
/orgcard.txt
: doc
/orgcard.
tex
272 (cd doc
&& perl ..
/UTILITIES
/orgcard2txt.pl orgcard.
tex > orgcard.txt
)
274 doc
/orgcard_letter.
tex: doc
/orgcard.
tex
275 perl
-pe
's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
276 doc
/orgcard.
tex > doc
/orgcard_letter.
tex
278 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
tex
279 (cd doc
&& pdftex orgcard_letter.
tex)
281 # Below here are special targets for maintenance only
285 html_manual
: doc
/org.texi
288 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
289 UTILITIES
/mansplit.pl doc
/manual
/*.html
291 html_guide
: doc
/orgguide.texi
294 $(TEXI2HTML
) -o doc
/guide doc
/orgguide.texi
295 UTILITIES
/guidesplit.pl doc
/guide
/*.html
299 pdf
: doc
/org.pdf doc
/orgguide.pdf
301 card
: doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgcard.txt
304 git checkout
-b testrelease
origin/maint
305 git merge
-s recursive
-X theirs master
306 UTILITIES
/set-version.pl testing
307 git commit
-a
-m
"Release testing"
308 make distfile TAG
=testversion
310 rm -rf org-testversion
*
313 git branch
-D testrelease
315 # The following target makes a full release for the stuff that is
316 # currently on master. Do it like this:
318 # make release TAG=7.01
322 git merge
-s recursive
-X theirs master
323 UTILITIES
/set-version.pl
$(TAG
)
324 git commit
-a
-m
"Release $(TAG)"
325 make relup TAG
=$(TAG
)
328 rm -f org-
$(TAG
)*.zip
329 rm -f org-
$(TAG
)*.
tar.gz
330 make pushreleasetag TAG
=$(TAG
)
331 git push
-f
origin maint
333 git merge
-s ours maint
334 UTILITIES
/set-version.pl
-a
$(TAG
)
335 git commit
-a
-m
"Update website to show $(TAG) as current release"
338 # The following target makes a release, but from the stuff that is on
339 # maint, not from the stuff that is on master. The idea is that it pushes
340 # out a minor fix into a minor update, while development on master
341 # already went full steam ahead. To make a micro-relesse, cherry-pick
342 # the necessary changes into maint, then run (with proper version number)
343 # This is just like release, but we skip the step which merges master
346 # make fixrelease TAG=7.01.02
350 git merge
-s recursive
-X theirs master
351 UTILITIES
/set-version.pl
$(TAG
)
352 git commit
-a
-m
"Release $(TAG)"
353 make relup TAG
=$(TAG
)
357 rm org-
$(TAG
)*.
tar.gz
358 make pushreleasetag TAG
=$(TAG
)
359 git push
-f
origin maint
361 git merge
-s ours maint
362 UTILITIES
/set-version.pl
-o
$(TAG
)
363 git commit
-a
-m
"Update website to show $(TAG) as current release"
366 # ~$ make relup only makes sense from orgmode.org server
367 # Don't call it from your computer!
374 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
377 UTILITIES
/gplmanual.pl
382 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
383 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
384 cp doc
/org_dual_license.texi RELEASEDIR
385 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
386 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
387 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
389 # ~$ make sync_release only makes sense from orgmode.org server
390 # Don't call it from your computer!
392 rsync
-avuz RELEASEDIR
/ /var
/www
/orgmode.org
/
394 # ~$ make sync_manual only makes sense from orgmode.org server
395 # Don't call it from your computer!
397 rsync
-avuz
--delete doc
/manual
/ /var
/www
/orgmode.org
/manual
/
398 rsync
-avuz
--delete doc
/guide
/ /var
/www
/orgmode.org
/guide
/
401 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
402 touch doc
/org.texi doc
/orgcard.
tex # force update
406 ${MAKE} lisp
/org-install.el
407 rm -rf org-
$(TAG
) org-
$(TAG
).zip
409 $(MKDIR
) org-
$(TAG
)/doc
410 $(MKDIR
) org-
$(TAG
)/lisp
411 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
412 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
413 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
414 cp
-r README_DIST org-
$(TAG
)/README
415 zip
-r org-
$(TAG
).zip org-
$(TAG
)
416 tar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
419 @if
[ "X$(PKG_TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
420 touch doc
/org.texi doc
/orgcard.
tex # force update
423 rm -rf org-
$(PKG_TAG
) org-
$(PKG_TAG
).
tar
424 $(MKDIR
) org-
$(PKG_TAG
)
425 cp
-r
$(PKG_FILES
) org-
$(PKG_TAG
)
426 echo
"(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" > org-
$(PKG_TAG
)/org-pkg.el
427 tar cf org-
$(PKG_TAG
).
tar org-
$(PKG_TAG
) --remove-files
431 rm -f lisp
/org-install.el
440 find contrib
-name \
*~
-exec
rm {} \
;
445 -(cd doc
&& rm -f org.pdf org org.html orgcard.pdf orgguide.pdf
)
446 -(cd doc
&& rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
447 -(cd doc
&& rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
448 -(cd doc
&& rm -f orgcard_letter.
tex orgcard_letter.pdf
)
449 -(cd doc
&& rm -rf manual
)
454 rm -rf org-7
*zip org-7
*tar.gz
461 git push orgmode@orgmode.org
:org-mode.git master
464 git tag
-m
"Adding tag" -a
$(TAG
)
465 git push orgmode@orgmode.org
:org-mode.git
$(TAG
)
468 git tag
-m
"Adding release tag" -a release_
$(TAG
)
469 git push orgmode@orgmode.org
:org-mode.git release_
$(TAG
)
473 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
474 lisp
/org-agenda.elc
: lisp
/org.el
475 lisp
/org-ascii.elc
: lisp
/org-exp.el
476 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
477 lisp
/org-archive.elc
: lisp
/org.el
478 lisp
/org-bbdb.elc
: lisp
/org.el
479 lisp
/org-beamer.elc
: lisp
/org.el
480 lisp
/org-bibtex.elc
: lisp
/org.el
481 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
482 lisp
/org-clock.elc
: lisp
/org.el
483 lisp
/org-colview.elc
: lisp
/org.el
484 lisp
/org-colview-xemacs.elc
: lisp
/org.el
485 lisp
/org-compat.elc
: lisp
/org-macs.el
486 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
487 lisp
/org-ctags.elc
: lisp
/org.el
488 lisp
/org-datetree.elc
: lisp
/org.el
489 lisp
/org-docview.elc
: lisp
/org.el
490 lisp
/org-entities.elc
:
491 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
492 lisp
/org-exp-blocks.elc
: lisp
/org.el
493 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
494 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
495 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
496 lisp
/org-feed.elc
: lisp
/org.el
497 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
498 lisp
/org-freemind.elc
: lisp
/org.el
499 lisp
/org-gnus.elc
: lisp
/org.el
500 lisp
/org-html.elc
: lisp
/org-exp.el
501 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
502 lisp
/org-icalendar.elc
: lisp
/org-exp.el
503 lisp
/org-id.elc
: lisp
/org.el
504 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
505 lisp
/org-info.elc
: lisp
/org.el
506 lisp
/org-inlinetask.elc
:
507 lisp
/org-irc.elc
: lisp
/org.el
508 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
509 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
510 lisp
/org-lparse.elc
: lisp
/org-exp.el
511 lisp
/org-mac-message.elc
: lisp
/org.el
513 lisp
/org-mew.elc
: lisp
/org.el
514 lisp
/org-mhe.elc
: lisp
/org.el
516 lisp
/org-mobile.elc
: lisp
/org.el
517 lisp
/org-mouse.elc
: lisp
/org.el
518 lisp
/org-odt.elc
: lisp
/org-lparse.el
519 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
520 lisp
/org-publish.elc
:
521 lisp
/org-protocol.elc
: lisp
/org.el
522 lisp
/org-remember.elc
: lisp
/org.el
523 lisp
/org-rmail.elc
: lisp
/org.el
524 lisp
/org-special-blocks.elc
: lisp
/org-compat.el
525 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
526 lisp
/org-table.elc
: lisp
/org.el
527 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
528 lisp
/org-timer.elc
: lisp
/org.el
529 lisp
/org-vm.elc
: lisp
/org.el
530 lisp
/org-w3m.elc
: lisp
/org.el
531 lisp
/org-wl.elc
: lisp
/org.el
532 lisp
/org-xoxo.elc
: lisp
/org-exp.el
534 # Describe valid make targets for org-mode.
536 @echo
"make - compile Org ELisp files"
537 @echo
"make clean - clean Elisp and documentation files"
538 @echo
"make all - compile Org ELisp files and documentation"
540 @echo
"make doc - make all documentation"
541 @echo
"make info - make Info documentation"
542 @echo
"make html - make HTML documentation"
543 @echo
"make pdf - make pdf documentation"
544 @echo
"make card - make refcards documentation"
546 @echo
"make install - install Org"
547 @echo
"make install-lisp - install Org ELisp files"
548 @echo
"make install-info - install Org Info file"