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
21 lispbdir
= $(lispdir
)/babel
22 lispbldir
= $(lispbdir
)/langs
24 # Where info files go.
25 infodir = $(prefix)/share
/info
27 ##----------------------------------------------------------------------
28 ## YOU MAY NEED TO EDIT THESE
29 ##----------------------------------------------------------------------
31 # Using emacs in batch mode.
33 BATCH
=$(EMACS
) -batch
-q
-no-site-file
-eval \
34 "(setq load-path (cons (expand-file-name\
36 (expand-file-name \"babel\" (expand-file-name \"./lisp/\")))\
37 (cons (expand-file-name \"babel\" (expand-file-name \"./lisp/\"))\
38 (cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))))"
40 # Specify the byte-compiler for compiling org-mode files
41 ELC
= $(BATCH
) -f batch-byte-compile
43 # How to make a pdf file from a texinfo file
46 # How to create directories
49 # How to create the info files from the texinfo file
52 # How to create the HTML file
53 TEXI2HTML
= makeinfo --html
--number-sections
54 TEXI2HTMLNOPSLIT
= makeinfo --html
--no-split
--number-sections
56 # How to copy the lisp files and elc files to their distination.
59 # Name of the program to install info files
60 INSTALL_INFO
=install-info
62 ##----------------------------------------------------------------------
63 ## BELOW THIS LINE ON YOUR OWN RISK!
64 ##----------------------------------------------------------------------
66 # The following variables need to be defined by the maintainer
78 org-colview-xemacs.el \
157 LISPFILES0
= $(LISPF
:%=lisp
/%)
158 LISPFILES
= $(LISPFILES0
) lisp
/org-install.el
159 LISPBFILES
= $(LISPBF
:%=lisp
/babel
/%)
160 LISPBLFILES
= $(LISPBLF
:%=lisp
/babel
/langs
/%)
161 ELCFILES0
= $(LISPFILES0
:.el
=.elc
)
162 ELCFILES
= $(LISPFILES
:.el
=.elc
)
163 ELCBFILES
= $(LISPBFILES
:.el
=.elc
)
164 DOCFILES
= doc
/org.texi doc
/org.pdf doc
/org doc
/dir \
165 doc
/pdflayout.sty doc
/.nosearch \
166 doc
/orgguide.texi doc
/orgguide.pdf
167 CARDFILES
= doc
/orgcard.
tex doc
/orgcard.pdf doc
/orgcard_letter.pdf
168 TEXIFILES
= doc
/org.texi
172 .SUFFIXES
: .el .elc .texi
175 # Additional distribution files
176 DISTFILES_extra
= Makefile ChangeLog request-assign-future.txt contrib
177 DISTFILES_xemacs
= xemacs
/noutline.el xemacs
/ps-print-invisible.el xemacs
/README
179 default
: $(ELCFILES
) $(ELCBFILES
)
181 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
191 compile
: $(ELCFILES0
) $(ELCBFILES
)
193 install: install-lisp
195 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf
198 ${MAKE} pdf
&& open doc
/org.pdf
201 ${MAKE} pdf
&& open doc
/orgguide.pdf
203 install-lisp
: $(LISPFILES
) $(LISPBFILES
) $(ELCFILES
)
204 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
205 if
[ ! -d
$(lispbdir
) ]; then
$(MKDIR
) $(lispbdir
); else true
; fi
;
206 if
[ ! -d
$(lispbldir
) ]; then
$(MKDIR
) $(lispbldir
); else true
; fi
;
207 $(CP
) $(LISPFILES
) $(lispdir
)
208 $(CP
) $(ELCFILES
) $(lispdir
)
209 $(CP
) $(LISPBFILES
) $(lispbdir
)
210 $(CP
) $(ELCBFILES
) $(lispbdir
)
211 $(CP
) $(LISPBLFILES
) $(lispbldir
)
213 install-info
: $(INFOFILES
)
214 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
215 $(CP
) $(INFOFILES
) $(infodir)
216 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
218 install-info-debian
: $(INFOFILES
)
219 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
221 install-noutline
: xemacs
/noutline.elc
222 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
223 $(CP
) xemacs
/noutline.el xemacs
/noutline.elc
$(lispdir
)
225 autoloads
: lisp
/org-install.el
227 lisp
/org-install.el
: $(LISPFILES0
) $(LISPBFILES
) Makefile
228 $(BATCH
) --eval
"(require 'autoload)" \
229 --eval
'(find-file "org-install.el")' \
230 --eval
'(erase-buffer)' \
231 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0) $(LISPBFILES))))' \
232 --eval
"(insert \"(add-to-list 'load-path (expand-file-name \\\"babel\\\" (file-name-directory (or load-file-name (buffer-file-name)))))\")" \
233 --eval
"(insert \"\n(add-to-list 'load-path (expand-file-name \\\"langs\\\" (expand-file-name \\\"babel\\\" (file-name-directory (or load-file-name (buffer-file-name))))))\")\n" \
234 --eval
'(insert "\n(provide (quote org-install))\n")' \
235 --eval
'(save-buffer)'
236 mv org-install.el lisp
238 xemacs
/noutline.elc
: xemacs
/noutline.el
240 doc
/org
: doc
/org.texi
241 (cd doc
; $(MAKEINFO
) --no-split org.texi
-o org
)
243 doc
/org.pdf
: doc
/org.texi
244 (cd doc
; $(TEXI2PDF
) org.texi
)
246 doc
/orgguide.pdf
: doc
/orgguide.texi
247 (cd doc
; $(TEXI2PDF
) orgguide.texi
)
249 doc
/org.html
: doc
/org.texi
250 (cd doc
; $(TEXI2HTML
) --no-split
-o org.html org.texi
)
251 UTILITIES
/manfull.pl doc
/org.html
253 doc
/orgcard.pdf
: doc
/orgcard.
tex
254 (cd doc
; pdftex orgcard.
tex)
256 doc
/orgcard.txt
: doc
/orgcard.
tex
257 (cd doc
; perl ..
/UTILITIES
/orgcard2txt.pl orgcard.
tex > orgcard.txt
)
259 doc
/orgcard_letter.
tex: doc
/orgcard.
tex
260 perl
-pe
's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
261 doc
/orgcard.
tex > doc
/orgcard_letter.
tex
263 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
tex
264 (cd doc
; pdftex orgcard_letter.
tex)
266 # Below here are special targets for maintenance only
269 ssh cdominik@orgmode.org
'pull-worg-org.sh && publish-worg-org.sh'
273 html_manual
: doc
/org.texi
276 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
277 UTILITIES
/mansplit.pl doc
/manual
/*.html
279 html_guide
: doc
/orgguide.texi
282 $(TEXI2HTML
) -o doc
/guide doc
/orgguide.texi
283 UTILITIES
/guidesplit.pl doc
/guide
/*.html
287 pdf
: doc
/org.pdf doc
/orgguide.pdf
289 card
: doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgcard.txt
292 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
293 touch doc
/org.texi doc
/orgcard.
tex # force update
297 ${MAKE} lisp
/org-install.el
298 rm -rf org-
$(TAG
) org-
$(TAG
).zip
300 $(MKDIR
) org-
$(TAG
)/xemacs
301 $(MKDIR
) org-
$(TAG
)/doc
302 $(MKDIR
) org-
$(TAG
)/lisp
303 $(MKDIR
) org-
$(TAG
)/lisp
/babel
304 $(MKDIR
) org-
$(TAG
)/lisp
/babel
/langs
305 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
306 cp
-r
$(LISPBFILES
) org-
$(TAG
)/lisp
/babel
307 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
308 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
309 cp
-r README_DIST org-
$(TAG
)/README
310 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
311 cp
-r
$(DISTFILES_xemacs
) org-
$(TAG
)/xemacs
/
312 zip
-r org-
$(TAG
).zip org-
$(TAG
)
313 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
316 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
319 UTILITIES
/gplmanual.pl
324 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
325 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
326 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
327 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
328 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
331 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
334 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
335 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
339 ${MAKE} upload_release
343 ${MAKE} upload_release
344 ${MAKE} upload_manual
347 grep
-e
'(debug)' lisp
/*el
350 find contrib
-name \
*~
-exec
rm {} \
;
355 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
356 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
357 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
358 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
359 (cd doc
; rm -rf manual
)
364 rm -rf org-6
*zip org-6
*tar.gz
374 rm -f lisp
/org-install.el
381 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
384 git-tag
-m
"Adding tag" -a
$(TAG
)
385 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
388 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
389 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
396 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
397 lisp
/org-agenda.elc
: lisp
/org.el
398 lisp
/org-ascii.elc
: lisp
/org-exp.el
399 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
400 lisp
/org-archive.elc
: lisp
/org.el
401 lisp
/org-bbdb.elc
: lisp
/org.el
402 lisp
/org-beamer.elc
: lisp
/org.el
403 lisp
/org-bibtex.elc
: lisp
/org.el
404 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
405 lisp
/org-clock.elc
: lisp
/org.el
406 lisp
/org-colview.elc
: lisp
/org.el
407 lisp
/org-colview-xemacs.elc
: lisp
/org.el
408 lisp
/org-compat.elc
: lisp
/org-macs.el
409 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
410 lisp
/org-ctags.elc
: lisp
/org.el
411 lisp
/org-datetree.elc
: lisp
/org.el
412 lisp
/org-docview.elc
: lisp
/org.el
413 lisp
/org-entities.elc
:
414 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
415 lisp
/org-exp-blocks.elc
: lisp
/org.el
416 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
417 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
418 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
419 lisp
/org-feed.elc
: lisp
/org.el
420 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
421 lisp
/org-freemind.elc
: lisp
/org.el
422 lisp
/org-gnus.elc
: lisp
/org.el
423 lisp
/org-html.elc
: lisp
/org-exp.el
424 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
425 lisp
/org-icalendar.elc
: lisp
/org-exp.el
426 lisp
/org-id.elc
: lisp
/org.el
427 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
428 lisp
/org-info.elc
: lisp
/org.el
429 lisp
/org-inlinetask.elc
:
430 lisp
/org-irc.elc
: lisp
/org.el
431 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
432 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
433 lisp
/org-mac-message.elc
: lisp
/org.el
435 lisp
/org-mew.elc
: lisp
/org.el
436 lisp
/org-mhe.elc
: lisp
/org.el
438 lisp
/org-mobile.elc
: lisp
/org.el
439 lisp
/org-mouse.elc
: lisp
/org.el
440 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
441 lisp
/org-publish.elc
:
442 lisp
/org-protocol.elc
: lisp
/org.el
443 lisp
/org-remember.elc
: lisp
/org.el
444 lisp
/org-rmail.elc
: lisp
/org.el
445 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
446 lisp
/org-table.elc
: lisp
/org.el
447 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
448 lisp
/org-timer.elc
: lisp
/org.el
449 lisp
/org-vm.elc
: lisp
/org.el
450 lisp
/org-w3m.elc
: lisp
/org.el
451 lisp
/org-wl.elc
: lisp
/org.el
452 lisp
/org-xoxo.elc
: lisp
/org-exp.el