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 \
152 LISPFILES0
= $(LISPF
:%=lisp
/%)
153 LISPFILES
= $(LISPFILES0
) lisp
/org-install.el
154 ELCFILES0
= $(LISPFILES0
:.el
=.elc
)
155 ELCFILES
= $(LISPFILES
:.el
=.elc
)
156 DOCFILES
= doc
/org.texi doc
/org.pdf doc
/org doc
/dir \
157 doc
/pdflayout.sty doc
/.nosearch \
158 doc
/orgguide.texi doc
/orgguide.pdf
159 CARDFILES
= doc
/orgcard.
tex doc
/orgcard.pdf doc
/orgcard_letter.pdf
160 TEXIFILES
= doc
/org.texi
164 .SUFFIXES
: .el .elc .texi
167 # Additional distribution files
168 DISTFILES_extra
= Makefile request-assign-future.txt contrib
170 default
: $(ELCFILES
) $(ELCBFILES
)
172 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
182 compile
: $(ELCFILES0
) $(ELCBFILES
)
184 install: install-lisp
186 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf
189 ${MAKE} pdf
&& open doc
/org.pdf
192 ${MAKE} pdf
&& open doc
/orgguide.pdf
194 install-lisp
: $(LISPFILES
) $(ELCFILES
)
195 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
196 $(CP
) $(LISPFILES
) $(lispdir
)
197 $(CP
) $(ELCFILES
) $(lispdir
)
199 install-info
: $(INFOFILES
)
200 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
201 $(CP
) $(INFOFILES
) $(infodir)
202 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
204 install-info-debian
: $(INFOFILES
)
205 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
207 autoloads
: lisp
/org-install.el
209 lisp
/org-install.el
: $(LISPFILES0
) Makefile
210 $(BATCH
) --eval
"(require 'autoload)" \
211 --eval
'(find-file "org-install.el")' \
212 --eval
'(erase-buffer)' \
213 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
214 --eval
'(insert "\n(provide (quote org-install))\n")' \
215 --eval
'(save-buffer)'
216 mv org-install.el lisp
218 doc
/org
: doc
/org.texi
219 (cd doc
; $(MAKEINFO
) --no-split org.texi
-o org
)
221 doc
/org.pdf
: doc
/org.texi
222 (cd doc
; $(TEXI2PDF
) org.texi
)
224 doc
/orgguide.pdf
: doc
/orgguide.texi
225 (cd doc
; $(TEXI2PDF
) orgguide.texi
)
227 doc
/org.html
: doc
/org.texi
228 (cd doc
; $(TEXI2HTML
) --no-split
-o org.html org.texi
)
229 UTILITIES
/manfull.pl doc
/org.html
231 doc
/orgcard.pdf
: doc
/orgcard.
tex
232 (cd doc
; pdftex orgcard.
tex)
234 doc
/orgcard.txt
: doc
/orgcard.
tex
235 (cd doc
; perl ..
/UTILITIES
/orgcard2txt.pl orgcard.
tex > orgcard.txt
)
237 doc
/orgcard_letter.
tex: doc
/orgcard.
tex
238 perl
-pe
's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
239 doc
/orgcard.
tex > doc
/orgcard_letter.
tex
241 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
tex
242 (cd doc
; pdftex orgcard_letter.
tex)
244 # Below here are special targets for maintenance only
247 ssh cdominik@orgmode.org
'pull-worg-org.sh && publish-worg-org.sh'
251 html_manual
: doc
/org.texi
254 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
255 UTILITIES
/mansplit.pl doc
/manual
/*.html
257 html_guide
: doc
/orgguide.texi
260 $(TEXI2HTML
) -o doc
/guide doc
/orgguide.texi
261 UTILITIES
/guidesplit.pl doc
/guide
/*.html
265 pdf
: doc
/org.pdf doc
/orgguide.pdf
267 card
: doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgcard.txt
270 git checkout
-b testrelease maint
271 git merge
-s recursive
-X theirs master
272 UTILITIES
/set-version.pl testing
273 git commit
-a
-m
"Release testing"
274 make distfile TAG
=testversion
276 rm -rf org-testversion
*
279 git branch
-D testrelease
283 git merge
-s recursive
-X theirs master
284 UTILITIES
/set-version.pl
$(TAG
)
285 git commit
-a
-m
"Release $(TAG)"
286 make relup TAG
=$(TAG
)
290 rm org-
$(TAG
)*.
tar.gz
291 make pushreleasetag TAG
=$(TAG
)
292 git push
origin maint
294 git merge
-s ours maint
295 UTILITIES
/set-version.pl
-o
$(TAG
)
296 git commit
-a
-m
"Update website to show $(TAG) as current release"
302 ${MAKE} upload_release
303 ${MAKE} upload_manual
306 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
307 touch doc
/org.texi doc
/orgcard.
tex # force update
311 ${MAKE} lisp
/org-install.el
312 rm -rf org-
$(TAG
) org-
$(TAG
).zip
314 $(MKDIR
) org-
$(TAG
)/doc
315 $(MKDIR
) org-
$(TAG
)/lisp
316 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
317 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
318 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
319 cp
-r README_DIST org-
$(TAG
)/README
320 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
321 zip
-r org-
$(TAG
).zip org-
$(TAG
)
322 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
325 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
328 UTILITIES
/gplmanual.pl
333 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
334 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
335 cp doc
/org_dual_license.texi RELEASEDIR
336 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
337 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
338 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
341 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
344 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
345 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
349 rm -f lisp
/org-install.el
358 find contrib
-name \
*~
-exec
rm {} \
;
363 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
364 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
365 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
366 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
367 (cd doc
; rm -rf manual
)
372 rm -rf org-7
*zip org-7
*tar.gz
379 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
382 git-tag
-m
"Adding tag" -a
$(TAG
)
383 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
386 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
387 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
391 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
392 lisp
/org-agenda.elc
: lisp
/org.el
393 lisp
/org-ascii.elc
: lisp
/org-exp.el
394 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
395 lisp
/org-archive.elc
: lisp
/org.el
396 lisp
/org-bbdb.elc
: lisp
/org.el
397 lisp
/org-beamer.elc
: lisp
/org.el
398 lisp
/org-bibtex.elc
: lisp
/org.el
399 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
400 lisp
/org-clock.elc
: lisp
/org.el
401 lisp
/org-colview.elc
: lisp
/org.el
402 lisp
/org-colview-xemacs.elc
: lisp
/org.el
403 lisp
/org-compat.elc
: lisp
/org-macs.el
404 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
405 lisp
/org-ctags.elc
: lisp
/org.el
406 lisp
/org-datetree.elc
: lisp
/org.el
407 lisp
/org-docview.elc
: lisp
/org.el
408 lisp
/org-entities.elc
:
409 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
410 lisp
/org-exp-blocks.elc
: lisp
/org.el
411 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
412 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
413 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
414 lisp
/org-feed.elc
: lisp
/org.el
415 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
416 lisp
/org-freemind.elc
: lisp
/org.el
417 lisp
/org-gnus.elc
: lisp
/org.el
418 lisp
/org-html.elc
: lisp
/org-exp.el
419 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
420 lisp
/org-icalendar.elc
: lisp
/org-exp.el
421 lisp
/org-id.elc
: lisp
/org.el
422 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
423 lisp
/org-info.elc
: lisp
/org.el
424 lisp
/org-inlinetask.elc
:
425 lisp
/org-irc.elc
: lisp
/org.el
426 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
427 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
428 lisp
/org-mac-message.elc
: lisp
/org.el
430 lisp
/org-mew.elc
: lisp
/org.el
431 lisp
/org-mhe.elc
: lisp
/org.el
433 lisp
/org-mobile.elc
: lisp
/org.el
434 lisp
/org-mouse.elc
: lisp
/org.el
435 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
436 lisp
/org-publish.elc
:
437 lisp
/org-protocol.elc
: lisp
/org.el
438 lisp
/org-remember.elc
: lisp
/org.el
439 lisp
/org-rmail.elc
: lisp
/org.el
440 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
441 lisp
/org-table.elc
: lisp
/org.el
442 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
443 lisp
/org-timer.elc
: lisp
/org.el
444 lisp
/org-vm.elc
: lisp
/org.el
445 lisp
/org-w3m.elc
: lisp
/org.el
446 lisp
/org-wl.elc
: lisp
/org.el
447 lisp
/org-xoxo.elc
: lisp
/org-exp.el