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
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
40 # How to create directories
43 # How to create the info files from the texinfo file
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.
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
72 org-colview-xemacs.el \
158 LISPFILES0
= $(LISPF
:%=lisp
/%)
159 LISPFILES
= $(LISPFILES0
) lisp
/org-install.el
160 ELCFILES0
= $(LISPFILES0
:.el
=.elc
)
161 ELCFILES
= $(LISPFILES
:.el
=.elc
)
162 DOCFILES
= doc
/org.texi doc
/org.pdf doc
/org doc
/dir \
163 doc
/pdflayout.sty doc
/.nosearch \
164 doc
/orgguide.texi doc
/orgguide.pdf
165 CARDFILES
= doc
/orgcard.
tex doc
/orgcard.pdf doc
/orgcard_letter.pdf
166 TEXIFILES
= doc
/org.texi
169 # Package Manager (ELPA)
170 PKG_TAG
= $(shell date
+%Y
%m
%d
)
171 PKG_DOC
= "Outline-based notes management and organizer"
174 PKG_FILES
= $(LISPFILES0
) \
181 doc
/orgcard_letter.pdf
183 .SUFFIXES
: .el .elc .texi
186 # Additional distribution files
187 DISTFILES_extra
= Makefile request-assign-future.txt contrib
189 default
: $(ELCFILES
) $(ELCBFILES
)
191 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
201 compile
: $(ELCFILES0
) $(ELCBFILES
)
203 install: install-lisp
205 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf doc
/orgcard.txt
208 ${MAKE} pdf
&& open doc
/org.pdf
211 ${MAKE} pdf
&& open doc
/orgguide.pdf
213 install-lisp
: $(LISPFILES
) $(ELCFILES
)
214 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
215 $(CP
) $(LISPFILES
) $(lispdir
)
216 $(CP
) $(ELCFILES
) $(lispdir
)
218 install-info
: $(INFOFILES
)
219 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
220 $(CP
) $(INFOFILES
) $(infodir)
221 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
223 install-info-debian
: $(INFOFILES
)
224 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
226 autoloads
: lisp
/org-install.el
228 lisp
/org-install.el
: $(LISPFILES0
) Makefile
229 $(BATCH
) --eval
"(require 'autoload)" \
230 --eval
'(find-file "org-install.el")' \
231 --eval
'(erase-buffer)' \
232 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
233 --eval
'(insert "\n(provide (quote org-install))\n")' \
234 --eval
'(save-buffer)'
235 mv org-install.el lisp
237 doc
/org
: doc
/org.texi
238 (cd doc
; $(MAKEINFO
) --no-split org.texi
-o org
)
240 doc
/org.pdf
: doc
/org.texi
241 (cd doc
; $(TEXI2PDF
) org.texi
)
243 doc
/orgguide.pdf
: doc
/orgguide.texi
244 (cd doc
; $(TEXI2PDF
) orgguide.texi
)
246 doc
/org.html
: doc
/org.texi
247 (cd doc
; $(TEXI2HTML
) --no-split
-o org.html org.texi
)
248 UTILITIES
/manfull.pl doc
/org.html
250 doc
/orgcard.pdf
: doc
/orgcard.
tex
251 (cd doc
; pdftex orgcard.
tex)
253 doc
/orgcard.txt
: doc
/orgcard.
tex
254 (cd doc
; perl ..
/UTILITIES
/orgcard2txt.pl orgcard.
tex > orgcard.txt
)
256 doc
/orgcard_letter.
tex: doc
/orgcard.
tex
257 perl
-pe
's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
258 doc
/orgcard.
tex > doc
/orgcard_letter.
tex
260 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
tex
261 (cd doc
; pdftex orgcard_letter.
tex)
263 # Below here are special targets for maintenance only
266 ssh cdominik@orgmode.org
'pull-worg-orgweb.sh && publish-worg-orgweb.sh'
270 html_manual
: doc
/org.texi
273 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
274 UTILITIES
/mansplit.pl doc
/manual
/*.html
276 html_guide
: doc
/orgguide.texi
279 $(TEXI2HTML
) -o doc
/guide doc
/orgguide.texi
280 UTILITIES
/guidesplit.pl doc
/guide
/*.html
284 pdf
: doc
/org.pdf doc
/orgguide.pdf
286 card
: doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgcard.txt
289 git checkout
-b testrelease maint
290 git merge
-s recursive
-X theirs master
291 UTILITIES
/set-version.pl testing
292 git commit
-a
-m
"Release testing"
293 make distfile TAG
=testversion
295 rm -rf org-testversion
*
298 git branch
-D testrelease
300 # The following target makes a full release fro the stuff that is
301 # currently on master. Do it like this:
303 # make release TAG=7.01
307 git merge
-s recursive
-X theirs master
308 UTILITIES
/set-version.pl
$(TAG
)
309 git commit
-a
-m
"Release $(TAG)"
310 make relup TAG
=$(TAG
)
313 rm -f org-
$(TAG
)*.zip
314 rm -f org-
$(TAG
)*.
tar.gz
315 make pushreleasetag TAG
=$(TAG
)
316 git push
-f
origin maint
318 git merge
-s ours maint
319 UTILITIES
/set-version.pl
-o
$(TAG
)
320 git commit
-a
-m
"Update website to show $(TAG) as current release"
324 # The following target makes a release, but from the studd that is on
325 # maint, not from the stuff that is on master. The idea is that it pushes
326 # out a minor fix into a minor update, while development on master
327 # already went full steam ahead. To make a micro-relesse, cherry-pick
328 # the necessary changes into maint, then run (with proper version number)
329 # This is just like release, but we skip the step which merges master
332 # make fixrelease TAG=7.01.02
336 git merge
-s recursive
-X theirs master
337 UTILITIES
/set-version.pl
$(TAG
)
338 git commit
-a
-m
"Release $(TAG)"
339 make relup TAG
=$(TAG
)
343 rm org-
$(TAG
)*.
tar.gz
344 make pushreleasetag TAG
=$(TAG
)
345 git push
-f
origin maint
347 git merge
-s ours maint
348 UTILITIES
/set-version.pl
-o
$(TAG
)
349 git commit
-a
-m
"Update website to show $(TAG) as current release"
355 ${MAKE} upload_release
356 ${MAKE} upload_manual
359 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
360 touch doc
/org.texi doc
/orgcard.
tex # force update
364 ${MAKE} lisp
/org-install.el
365 rm -rf org-
$(TAG
) org-
$(TAG
).zip
367 $(MKDIR
) org-
$(TAG
)/doc
368 $(MKDIR
) org-
$(TAG
)/lisp
369 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
370 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
371 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
372 cp
-r README_DIST org-
$(TAG
)/README
373 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
374 zip
-r org-
$(TAG
).zip org-
$(TAG
)
375 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
378 @if
[ "X$(PKG_TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
379 touch doc
/org.texi doc
/orgcard.
tex # force update
382 rm -rf org-
$(PKG_TAG
) org-
$(PKG_TAG
).
tar
383 $(MKDIR
) org-
$(PKG_TAG
)
384 cp
-r
$(PKG_FILES
) org-
$(PKG_TAG
)
385 echo
"(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" > org-
$(PKG_TAG
)/org-pkg.el
386 tar cf org-
$(PKG_TAG
).
tar org-
$(PKG_TAG
) --remove-files
389 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
392 UTILITIES
/gplmanual.pl
397 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
398 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
399 cp doc
/org_dual_license.texi RELEASEDIR
400 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
401 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
402 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
405 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
408 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
409 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
413 rm -f lisp
/org-install.el
422 find contrib
-name \
*~
-exec
rm {} \
;
427 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
428 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
429 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
430 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
431 (cd doc
; rm -rf manual
)
436 rm -rf org-7
*zip org-7
*tar.gz
443 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
446 git-tag
-m
"Adding tag" -a
$(TAG
)
447 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
450 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
451 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
455 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
456 lisp
/org-agenda.elc
: lisp
/org.el
457 lisp
/org-ascii.elc
: lisp
/org-exp.el
458 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
459 lisp
/org-archive.elc
: lisp
/org.el
460 lisp
/org-bbdb.elc
: lisp
/org.el
461 lisp
/org-beamer.elc
: lisp
/org.el
462 lisp
/org-bibtex.elc
: lisp
/org.el
463 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
464 lisp
/org-clock.elc
: lisp
/org.el
465 lisp
/org-colview.elc
: lisp
/org.el
466 lisp
/org-colview-xemacs.elc
: lisp
/org.el
467 lisp
/org-compat.elc
: lisp
/org-macs.el
468 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
469 lisp
/org-ctags.elc
: lisp
/org.el
470 lisp
/org-datetree.elc
: lisp
/org.el
471 lisp
/org-docview.elc
: lisp
/org.el
472 lisp
/org-entities.elc
:
473 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
474 lisp
/org-exp-blocks.elc
: lisp
/org.el
475 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
476 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
477 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
478 lisp
/org-feed.elc
: lisp
/org.el
479 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
480 lisp
/org-freemind.elc
: lisp
/org.el
481 lisp
/org-gnus.elc
: lisp
/org.el
482 lisp
/org-html.elc
: lisp
/org-exp.el
483 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
484 lisp
/org-icalendar.elc
: lisp
/org-exp.el
485 lisp
/org-id.elc
: lisp
/org.el
486 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
487 lisp
/org-info.elc
: lisp
/org.el
488 lisp
/org-inlinetask.elc
:
489 lisp
/org-irc.elc
: lisp
/org.el
490 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
491 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
492 lisp
/org-mac-message.elc
: lisp
/org.el
494 lisp
/org-mew.elc
: lisp
/org.el
495 lisp
/org-mhe.elc
: lisp
/org.el
497 lisp
/org-mobile.elc
: lisp
/org.el
498 lisp
/org-mouse.elc
: lisp
/org.el
499 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
500 lisp
/org-publish.elc
:
501 lisp
/org-protocol.elc
: lisp
/org.el
502 lisp
/org-remember.elc
: lisp
/org.el
503 lisp
/org-rmail.elc
: lisp
/org.el
504 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
505 lisp
/org-table.elc
: lisp
/org.el
506 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
507 lisp
/org-timer.elc
: lisp
/org.el
508 lisp
/org-vm.elc
: lisp
/org.el
509 lisp
/org-w3m.elc
: lisp
/org.el
510 lisp
/org-wl.elc
: lisp
/org.el
511 lisp
/org-xoxo.elc
: lisp
/org-exp.el