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 \
156 LISPFILES0
= $(LISPF
:%=lisp
/%)
157 LISPFILES
= $(LISPFILES0
) lisp
/org-install.el
158 ELCFILES0
= $(LISPFILES0
:.el
=.elc
)
159 ELCFILES
= $(LISPFILES
:.el
=.elc
)
160 DOCFILES
= doc
/org.texi doc
/org.pdf doc
/org doc
/dir \
161 doc
/pdflayout.sty doc
/.nosearch \
162 doc
/orgguide.texi doc
/orgguide.pdf
163 CARDFILES
= doc
/orgcard.
tex doc
/orgcard.pdf doc
/orgcard_letter.pdf
164 TEXIFILES
= doc
/org.texi
167 # Package Manager (ELPA)
168 PKG_TAG
= $(shell date
+%Y
%m
%d
)
169 PKG_DOC
= "Outline-based notes management and organizer"
172 PKG_FILES
= $(LISPFILES0
) \
179 doc
/orgcard_letter.pdf
181 .SUFFIXES
: .el .elc .texi
184 # Additional distribution files
185 DISTFILES_extra
= Makefile request-assign-future.txt contrib
187 default
: $(ELCFILES
) $(ELCBFILES
)
189 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
199 compile
: $(ELCFILES0
) $(ELCBFILES
)
201 install: install-lisp
203 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf
206 ${MAKE} pdf
&& open doc
/org.pdf
209 ${MAKE} pdf
&& open doc
/orgguide.pdf
211 install-lisp
: $(LISPFILES
) $(ELCFILES
)
212 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
213 $(CP
) $(LISPFILES
) $(lispdir
)
214 $(CP
) $(ELCFILES
) $(lispdir
)
216 install-info
: $(INFOFILES
)
217 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
218 $(CP
) $(INFOFILES
) $(infodir)
219 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
221 install-info-debian
: $(INFOFILES
)
222 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
224 autoloads
: lisp
/org-install.el
226 lisp
/org-install.el
: $(LISPFILES0
) Makefile
227 $(BATCH
) --eval
"(require 'autoload)" \
228 --eval
'(find-file "org-install.el")' \
229 --eval
'(erase-buffer)' \
230 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
231 --eval
'(insert "\n(provide (quote org-install))\n")' \
232 --eval
'(save-buffer)'
233 mv org-install.el lisp
235 doc
/org
: doc
/org.texi
236 (cd doc
; $(MAKEINFO
) --no-split org.texi
-o org
)
238 doc
/org.pdf
: doc
/org.texi
239 (cd doc
; $(TEXI2PDF
) org.texi
)
241 doc
/orgguide.pdf
: doc
/orgguide.texi
242 (cd doc
; $(TEXI2PDF
) orgguide.texi
)
244 doc
/org.html
: doc
/org.texi
245 (cd doc
; $(TEXI2HTML
) --no-split
-o org.html org.texi
)
246 UTILITIES
/manfull.pl doc
/org.html
248 doc
/orgcard.pdf
: doc
/orgcard.
tex
249 (cd doc
; pdftex orgcard.
tex)
251 doc
/orgcard.txt
: doc
/orgcard.
tex
252 (cd doc
; perl ..
/UTILITIES
/orgcard2txt.pl orgcard.
tex > orgcard.txt
)
254 doc
/orgcard_letter.
tex: doc
/orgcard.
tex
255 perl
-pe
's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
256 doc
/orgcard.
tex > doc
/orgcard_letter.
tex
258 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
tex
259 (cd doc
; pdftex orgcard_letter.
tex)
261 # Below here are special targets for maintenance only
264 ssh cdominik@orgmode.org
'pull-worg-org.sh && publish-worg-org.sh'
268 html_manual
: doc
/org.texi
271 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
272 UTILITIES
/mansplit.pl doc
/manual
/*.html
274 html_guide
: doc
/orgguide.texi
277 $(TEXI2HTML
) -o doc
/guide doc
/orgguide.texi
278 UTILITIES
/guidesplit.pl doc
/guide
/*.html
282 pdf
: doc
/org.pdf doc
/orgguide.pdf
284 card
: doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgcard.txt
287 git checkout
-b testrelease maint
288 git merge
-s recursive
-X theirs master
289 UTILITIES
/set-version.pl testing
290 git commit
-a
-m
"Release testing"
291 make distfile TAG
=testversion
293 rm -rf org-testversion
*
296 git branch
-D testrelease
300 git merge
-s recursive
-X theirs master
301 UTILITIES
/set-version.pl
$(TAG
)
302 git commit
-a
-m
"Release $(TAG)"
303 make relup TAG
=$(TAG
)
307 rm org-
$(TAG
)*.
tar.gz
308 make pushreleasetag TAG
=$(TAG
)
309 git push
origin maint
311 git merge
-s ours maint
312 UTILITIES
/set-version.pl
-o
$(TAG
)
313 git commit
-a
-m
"Update website to show $(TAG) as current release"
319 ${MAKE} upload_release
320 ${MAKE} upload_manual
323 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
324 touch doc
/org.texi doc
/orgcard.
tex # force update
328 ${MAKE} lisp
/org-install.el
329 rm -rf org-
$(TAG
) org-
$(TAG
).zip
331 $(MKDIR
) org-
$(TAG
)/doc
332 $(MKDIR
) org-
$(TAG
)/lisp
333 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
334 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
335 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
336 cp
-r README_DIST org-
$(TAG
)/README
337 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
338 zip
-r org-
$(TAG
).zip org-
$(TAG
)
339 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
342 @if
[ "X$(PKG_TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
343 touch doc
/org.texi doc
/orgcard.
tex # force update
346 rm -rf org-
$(PKG_TAG
) org-
$(PKG_TAG
).
tar
347 $(MKDIR
) org-
$(PKG_TAG
)
348 cp
-r
$(PKG_FILES
) org-
$(PKG_TAG
)
349 echo
"(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" > org-
$(PKG_TAG
)/org-pkg.el
350 tar cf org-
$(PKG_TAG
).
tar org-
$(PKG_TAG
) --remove-files
353 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
356 UTILITIES
/gplmanual.pl
361 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
362 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
363 cp doc
/org_dual_license.texi RELEASEDIR
364 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
365 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
366 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
369 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
372 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
373 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
377 rm -f lisp
/org-install.el
386 find contrib
-name \
*~
-exec
rm {} \
;
391 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
392 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
393 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
394 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
395 (cd doc
; rm -rf manual
)
400 rm -rf org-7
*zip org-7
*tar.gz
407 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
410 git-tag
-m
"Adding tag" -a
$(TAG
)
411 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
414 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
415 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
419 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
420 lisp
/org-agenda.elc
: lisp
/org.el
421 lisp
/org-ascii.elc
: lisp
/org-exp.el
422 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
423 lisp
/org-archive.elc
: lisp
/org.el
424 lisp
/org-bbdb.elc
: lisp
/org.el
425 lisp
/org-beamer.elc
: lisp
/org.el
426 lisp
/org-bibtex.elc
: lisp
/org.el
427 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
428 lisp
/org-clock.elc
: lisp
/org.el
429 lisp
/org-colview.elc
: lisp
/org.el
430 lisp
/org-colview-xemacs.elc
: lisp
/org.el
431 lisp
/org-compat.elc
: lisp
/org-macs.el
432 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
433 lisp
/org-ctags.elc
: lisp
/org.el
434 lisp
/org-datetree.elc
: lisp
/org.el
435 lisp
/org-docview.elc
: lisp
/org.el
436 lisp
/org-entities.elc
:
437 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
438 lisp
/org-exp-blocks.elc
: lisp
/org.el
439 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
440 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
441 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
442 lisp
/org-feed.elc
: lisp
/org.el
443 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
444 lisp
/org-freemind.elc
: lisp
/org.el
445 lisp
/org-gnus.elc
: lisp
/org.el
446 lisp
/org-html.elc
: lisp
/org-exp.el
447 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
448 lisp
/org-icalendar.elc
: lisp
/org-exp.el
449 lisp
/org-id.elc
: lisp
/org.el
450 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
451 lisp
/org-info.elc
: lisp
/org.el
452 lisp
/org-inlinetask.elc
:
453 lisp
/org-irc.elc
: lisp
/org.el
454 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
455 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
456 lisp
/org-mac-message.elc
: lisp
/org.el
458 lisp
/org-mew.elc
: lisp
/org.el
459 lisp
/org-mhe.elc
: lisp
/org.el
461 lisp
/org-mobile.elc
: lisp
/org.el
462 lisp
/org-mouse.elc
: lisp
/org.el
463 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
464 lisp
/org-publish.elc
:
465 lisp
/org-protocol.elc
: lisp
/org.el
466 lisp
/org-remember.elc
: lisp
/org.el
467 lisp
/org-rmail.elc
: lisp
/org.el
468 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
469 lisp
/org-table.elc
: lisp
/org.el
470 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
471 lisp
/org-timer.elc
: lisp
/org.el
472 lisp
/org-vm.elc
: lisp
/org.el
473 lisp
/org-w3m.elc
: lisp
/org.el
474 lisp
/org-wl.elc
: lisp
/org.el
475 lisp
/org-xoxo.elc
: lisp
/org-exp.el