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
168 .SUFFIXES
: .el .elc .texi
171 # Additional distribution files
172 DISTFILES_extra
= Makefile request-assign-future.txt contrib
174 default
: $(ELCFILES
) $(ELCBFILES
)
176 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
186 compile
: $(ELCFILES0
) $(ELCBFILES
)
188 install: install-lisp
190 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf
193 ${MAKE} pdf
&& open doc
/org.pdf
196 ${MAKE} pdf
&& open doc
/orgguide.pdf
198 install-lisp
: $(LISPFILES
) $(ELCFILES
)
199 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
200 $(CP
) $(LISPFILES
) $(lispdir
)
201 $(CP
) $(ELCFILES
) $(lispdir
)
203 install-info
: $(INFOFILES
)
204 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
205 $(CP
) $(INFOFILES
) $(infodir)
206 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
208 install-info-debian
: $(INFOFILES
)
209 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
211 autoloads
: lisp
/org-install.el
213 lisp
/org-install.el
: $(LISPFILES0
) Makefile
214 $(BATCH
) --eval
"(require 'autoload)" \
215 --eval
'(find-file "org-install.el")' \
216 --eval
'(erase-buffer)' \
217 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
218 --eval
'(insert "\n(provide (quote org-install))\n")' \
219 --eval
'(save-buffer)'
220 mv org-install.el lisp
222 doc
/org
: doc
/org.texi
223 (cd doc
; $(MAKEINFO
) --no-split org.texi
-o org
)
225 doc
/org.pdf
: doc
/org.texi
226 (cd doc
; $(TEXI2PDF
) org.texi
)
228 doc
/orgguide.pdf
: doc
/orgguide.texi
229 (cd doc
; $(TEXI2PDF
) orgguide.texi
)
231 doc
/org.html
: doc
/org.texi
232 (cd doc
; $(TEXI2HTML
) --no-split
-o org.html org.texi
)
233 UTILITIES
/manfull.pl doc
/org.html
235 doc
/orgcard.pdf
: doc
/orgcard.
tex
236 (cd doc
; pdftex orgcard.
tex)
238 doc
/orgcard.txt
: doc
/orgcard.
tex
239 (cd doc
; perl ..
/UTILITIES
/orgcard2txt.pl orgcard.
tex > orgcard.txt
)
241 doc
/orgcard_letter.
tex: doc
/orgcard.
tex
242 perl
-pe
's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
243 doc
/orgcard.
tex > doc
/orgcard_letter.
tex
245 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
tex
246 (cd doc
; pdftex orgcard_letter.
tex)
248 # Below here are special targets for maintenance only
251 ssh cdominik@orgmode.org
'pull-worg-org.sh && publish-worg-org.sh'
255 html_manual
: doc
/org.texi
258 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
259 UTILITIES
/mansplit.pl doc
/manual
/*.html
261 html_guide
: doc
/orgguide.texi
264 $(TEXI2HTML
) -o doc
/guide doc
/orgguide.texi
265 UTILITIES
/guidesplit.pl doc
/guide
/*.html
269 pdf
: doc
/org.pdf doc
/orgguide.pdf
271 card
: doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgcard.txt
274 git checkout
-b testrelease maint
275 git merge
-s recursive
-X theirs master
276 UTILITIES
/set-version.pl testing
277 git commit
-a
-m
"Release testing"
278 make distfile TAG
=testversion
280 rm -rf org-testversion
*
283 git branch
-D testrelease
287 git merge
-s recursive
-X theirs master
288 UTILITIES
/set-version.pl
$(TAG
)
289 git commit
-a
-m
"Release $(TAG)"
290 make relup TAG
=$(TAG
)
294 rm org-
$(TAG
)*.
tar.gz
295 make pushreleasetag TAG
=$(TAG
)
296 git push
origin maint
298 git merge
-s ours maint
299 UTILITIES
/set-version.pl
-o
$(TAG
)
300 git commit
-a
-m
"Update website to show $(TAG) as current release"
306 ${MAKE} upload_release
307 ${MAKE} upload_manual
310 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
311 touch doc
/org.texi doc
/orgcard.
tex # force update
315 ${MAKE} lisp
/org-install.el
316 rm -rf org-
$(TAG
) org-
$(TAG
).zip
318 $(MKDIR
) org-
$(TAG
)/doc
319 $(MKDIR
) org-
$(TAG
)/lisp
320 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
321 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
322 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
323 cp
-r README_DIST org-
$(TAG
)/README
324 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
325 zip
-r org-
$(TAG
).zip org-
$(TAG
)
326 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
329 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
332 UTILITIES
/gplmanual.pl
337 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
338 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
339 cp doc
/org_dual_license.texi RELEASEDIR
340 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
341 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
342 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
345 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
348 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
349 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
353 rm -f lisp
/org-install.el
362 find contrib
-name \
*~
-exec
rm {} \
;
367 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
368 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
369 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
370 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
371 (cd doc
; rm -rf manual
)
376 rm -rf org-7
*zip org-7
*tar.gz
383 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
386 git-tag
-m
"Adding tag" -a
$(TAG
)
387 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
390 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
391 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
395 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
396 lisp
/org-agenda.elc
: lisp
/org.el
397 lisp
/org-ascii.elc
: lisp
/org-exp.el
398 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
399 lisp
/org-archive.elc
: lisp
/org.el
400 lisp
/org-bbdb.elc
: lisp
/org.el
401 lisp
/org-beamer.elc
: lisp
/org.el
402 lisp
/org-bibtex.elc
: lisp
/org.el
403 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
404 lisp
/org-clock.elc
: lisp
/org.el
405 lisp
/org-colview.elc
: lisp
/org.el
406 lisp
/org-colview-xemacs.elc
: lisp
/org.el
407 lisp
/org-compat.elc
: lisp
/org-macs.el
408 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
409 lisp
/org-ctags.elc
: lisp
/org.el
410 lisp
/org-datetree.elc
: lisp
/org.el
411 lisp
/org-docview.elc
: lisp
/org.el
412 lisp
/org-entities.elc
:
413 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
414 lisp
/org-exp-blocks.elc
: lisp
/org.el
415 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
416 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
417 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
418 lisp
/org-feed.elc
: lisp
/org.el
419 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
420 lisp
/org-freemind.elc
: lisp
/org.el
421 lisp
/org-gnus.elc
: lisp
/org.el
422 lisp
/org-html.elc
: lisp
/org-exp.el
423 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
424 lisp
/org-icalendar.elc
: lisp
/org-exp.el
425 lisp
/org-id.elc
: lisp
/org.el
426 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
427 lisp
/org-info.elc
: lisp
/org.el
428 lisp
/org-inlinetask.elc
:
429 lisp
/org-irc.elc
: lisp
/org.el
430 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
431 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
432 lisp
/org-mac-message.elc
: lisp
/org.el
434 lisp
/org-mew.elc
: lisp
/org.el
435 lisp
/org-mhe.elc
: lisp
/org.el
437 lisp
/org-mobile.elc
: lisp
/org.el
438 lisp
/org-mouse.elc
: lisp
/org.el
439 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
440 lisp
/org-publish.elc
:
441 lisp
/org-protocol.elc
: lisp
/org.el
442 lisp
/org-remember.elc
: lisp
/org.el
443 lisp
/org-rmail.elc
: lisp
/org.el
444 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
445 lisp
/org-table.elc
: lisp
/org.el
446 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
447 lisp
/org-timer.elc
: lisp
/org.el
448 lisp
/org-vm.elc
: lisp
/org.el
449 lisp
/org-w3m.elc
: lisp
/org.el
450 lisp
/org-wl.elc
: lisp
/org.el
451 lisp
/org-xoxo.elc
: lisp
/org-exp.el