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
169 DISTFILES_xemacs
= xemacs
/noutline.el xemacs
/ps-print-invisible.el xemacs
/README
171 default
: $(ELCFILES
) $(ELCBFILES
)
173 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
183 compile
: $(ELCFILES0
) $(ELCBFILES
)
185 install: install-lisp
187 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf
190 ${MAKE} pdf
&& open doc
/org.pdf
193 ${MAKE} pdf
&& open doc
/orgguide.pdf
195 install-lisp
: $(LISPFILES
) $(ELCFILES
)
196 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
197 $(CP
) $(LISPFILES
) $(lispdir
)
198 $(CP
) $(ELCFILES
) $(lispdir
)
200 install-info
: $(INFOFILES
)
201 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
202 $(CP
) $(INFOFILES
) $(infodir)
203 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
205 install-info-debian
: $(INFOFILES
)
206 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
208 install-noutline
: xemacs
/noutline.elc
209 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
210 $(CP
) xemacs
/noutline.el xemacs
/noutline.elc
$(lispdir
)
212 autoloads
: lisp
/org-install.el
214 lisp
/org-install.el
: $(LISPFILES0
) Makefile
215 $(BATCH
) --eval
"(require 'autoload)" \
216 --eval
'(find-file "org-install.el")' \
217 --eval
'(erase-buffer)' \
218 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
219 --eval
'(insert "\n(provide (quote org-install))\n")' \
220 --eval
'(save-buffer)'
221 mv org-install.el lisp
223 xemacs
/noutline.elc
: xemacs
/noutline.el
225 doc
/org
: doc
/org.texi
226 (cd doc
; $(MAKEINFO
) --no-split org.texi
-o org
)
228 doc
/org.pdf
: doc
/org.texi
229 (cd doc
; $(TEXI2PDF
) org.texi
)
231 doc
/orgguide.pdf
: doc
/orgguide.texi
232 (cd doc
; $(TEXI2PDF
) orgguide.texi
)
234 doc
/org.html
: doc
/org.texi
235 (cd doc
; $(TEXI2HTML
) --no-split
-o org.html org.texi
)
236 UTILITIES
/manfull.pl doc
/org.html
238 doc
/orgcard.pdf
: doc
/orgcard.
tex
239 (cd doc
; pdftex orgcard.
tex)
241 doc
/orgcard.txt
: doc
/orgcard.
tex
242 (cd doc
; perl ..
/UTILITIES
/orgcard2txt.pl orgcard.
tex > orgcard.txt
)
244 doc
/orgcard_letter.
tex: doc
/orgcard.
tex
245 perl
-pe
's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
246 doc
/orgcard.
tex > doc
/orgcard_letter.
tex
248 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
tex
249 (cd doc
; pdftex orgcard_letter.
tex)
251 # Below here are special targets for maintenance only
254 ssh cdominik@orgmode.org
'pull-worg-org.sh && publish-worg-org.sh'
258 html_manual
: doc
/org.texi
261 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
262 UTILITIES
/mansplit.pl doc
/manual
/*.html
264 html_guide
: doc
/orgguide.texi
267 $(TEXI2HTML
) -o doc
/guide doc
/orgguide.texi
268 UTILITIES
/guidesplit.pl doc
/guide
/*.html
272 pdf
: doc
/org.pdf doc
/orgguide.pdf
274 card
: doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgcard.txt
277 git checkout
-b testrelease maint
278 git merge
-s recursive
-X theirs master
279 UTILITIES
/set-version.pl testing
280 git commit
-a
-m
"Release testing"
281 make distfile TAG
=testversion
283 rm -rf org-testversion
*
286 git branch
-D testrelease
290 git merge
-s recursive
-X theirs master
291 UTILITIES
/set-version.pl
$(TAG
)
292 git commit
-a
-m
"Release $(TAG)"
293 make relup TAG
=$(TAG
)
297 rm org-
$(TAG
)*.
tar.gz
298 make pushreleasetag TAG
=$(TAG
)
299 git push
origin maint
301 git merge
-s ours maint
302 UTILITIES
/set-version.pl
-o
$(TAG
)
303 git commit
-a
-m
"Update website to show $(TAG) as current release"
309 ${MAKE} upload_release
310 ${MAKE} upload_manual
313 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
314 touch doc
/org.texi doc
/orgcard.
tex # force update
318 ${MAKE} lisp
/org-install.el
319 rm -rf org-
$(TAG
) org-
$(TAG
).zip
321 $(MKDIR
) org-
$(TAG
)/xemacs
322 $(MKDIR
) org-
$(TAG
)/doc
323 $(MKDIR
) org-
$(TAG
)/lisp
324 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
325 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
326 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
327 cp
-r README_DIST org-
$(TAG
)/README
328 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
329 cp
-r
$(DISTFILES_xemacs
) org-
$(TAG
)/xemacs
/
330 zip
-r org-
$(TAG
).zip org-
$(TAG
)
331 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
334 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
337 UTILITIES
/gplmanual.pl
342 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
343 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
344 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
345 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
346 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
349 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
352 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
353 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
357 rm -f lisp
/org-install.el
366 find contrib
-name \
*~
-exec
rm {} \
;
371 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
372 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
373 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
374 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
375 (cd doc
; rm -rf manual
)
380 rm -rf org-6
*zip org-6
*tar.gz
387 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
390 git-tag
-m
"Adding tag" -a
$(TAG
)
391 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
394 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
395 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
399 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
400 lisp
/org-agenda.elc
: lisp
/org.el
401 lisp
/org-ascii.elc
: lisp
/org-exp.el
402 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
403 lisp
/org-archive.elc
: lisp
/org.el
404 lisp
/org-bbdb.elc
: lisp
/org.el
405 lisp
/org-beamer.elc
: lisp
/org.el
406 lisp
/org-bibtex.elc
: lisp
/org.el
407 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
408 lisp
/org-clock.elc
: lisp
/org.el
409 lisp
/org-colview.elc
: lisp
/org.el
410 lisp
/org-colview-xemacs.elc
: lisp
/org.el
411 lisp
/org-compat.elc
: lisp
/org-macs.el
412 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
413 lisp
/org-ctags.elc
: lisp
/org.el
414 lisp
/org-datetree.elc
: lisp
/org.el
415 lisp
/org-docview.elc
: lisp
/org.el
416 lisp
/org-entities.elc
:
417 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
418 lisp
/org-exp-blocks.elc
: lisp
/org.el
419 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
420 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
421 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
422 lisp
/org-feed.elc
: lisp
/org.el
423 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
424 lisp
/org-freemind.elc
: lisp
/org.el
425 lisp
/org-gnus.elc
: lisp
/org.el
426 lisp
/org-html.elc
: lisp
/org-exp.el
427 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
428 lisp
/org-icalendar.elc
: lisp
/org-exp.el
429 lisp
/org-id.elc
: lisp
/org.el
430 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
431 lisp
/org-info.elc
: lisp
/org.el
432 lisp
/org-inlinetask.elc
:
433 lisp
/org-irc.elc
: lisp
/org.el
434 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
435 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
436 lisp
/org-mac-message.elc
: lisp
/org.el
438 lisp
/org-mew.elc
: lisp
/org.el
439 lisp
/org-mhe.elc
: lisp
/org.el
441 lisp
/org-mobile.elc
: lisp
/org.el
442 lisp
/org-mouse.elc
: lisp
/org.el
443 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
444 lisp
/org-publish.elc
:
445 lisp
/org-protocol.elc
: lisp
/org.el
446 lisp
/org-remember.elc
: lisp
/org.el
447 lisp
/org-rmail.elc
: lisp
/org.el
448 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
449 lisp
/org-table.elc
: lisp
/org.el
450 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
451 lisp
/org-timer.elc
: lisp
/org.el
452 lisp
/org-vm.elc
: lisp
/org.el
453 lisp
/org-w3m.elc
: lisp
/org.el
454 lisp
/org-wl.elc
: lisp
/org.el
455 lisp
/org-xoxo.elc
: lisp
/org-exp.el