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 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
304 cp
-r
$(LISPBFILES
) org-
$(TAG
)/lisp
/babel
305 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
306 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
307 cp
-r README_DIST org-
$(TAG
)/README
308 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
309 cp
-r
$(DISTFILES_xemacs
) org-
$(TAG
)/xemacs
/
310 zip
-r org-
$(TAG
).zip org-
$(TAG
)
311 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
314 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
317 UTILITIES
/gplmanual.pl
322 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
323 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
324 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
325 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
326 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
329 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
332 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
333 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
337 ${MAKE} upload_release
341 ${MAKE} upload_release
342 ${MAKE} upload_manual
345 grep
-e
'(debug)' lisp
/*el
348 find contrib
-name \
*~
-exec
rm {} \
;
353 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
354 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
355 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
356 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
357 (cd doc
; rm -rf manual
)
362 rm -rf org-6
*zip org-6
*tar.gz
372 rm -f lisp
/org-install.el
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
)
394 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
395 lisp
/org-agenda.elc
: lisp
/org.el
396 lisp
/org-ascii.elc
: lisp
/org-exp.el
397 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
398 lisp
/org-archive.elc
: lisp
/org.el
399 lisp
/org-bbdb.elc
: lisp
/org.el
400 lisp
/org-beamer.elc
: lisp
/org.el
401 lisp
/org-bibtex.elc
: lisp
/org.el
402 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
403 lisp
/org-clock.elc
: lisp
/org.el
404 lisp
/org-colview.elc
: lisp
/org.el
405 lisp
/org-colview-xemacs.elc
: lisp
/org.el
406 lisp
/org-compat.elc
: lisp
/org-macs.el
407 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
408 lisp
/org-ctags.elc
: lisp
/org.el
409 lisp
/org-datetree.elc
: lisp
/org.el
410 lisp
/org-docview.elc
: lisp
/org.el
411 lisp
/org-entities.elc
:
412 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
413 lisp
/org-exp-blocks.elc
: lisp
/org.el
414 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
415 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
416 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
417 lisp
/org-feed.elc
: lisp
/org.el
418 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
419 lisp
/org-freemind.elc
: lisp
/org.el
420 lisp
/org-gnus.elc
: lisp
/org.el
421 lisp
/org-html.elc
: lisp
/org-exp.el
422 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
423 lisp
/org-icalendar.elc
: lisp
/org-exp.el
424 lisp
/org-id.elc
: lisp
/org.el
425 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
426 lisp
/org-info.elc
: lisp
/org.el
427 lisp
/org-inlinetask.elc
:
428 lisp
/org-irc.elc
: lisp
/org.el
429 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
430 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
431 lisp
/org-mac-message.elc
: lisp
/org.el
433 lisp
/org-mew.elc
: lisp
/org.el
434 lisp
/org-mhe.elc
: lisp
/org.el
436 lisp
/org-mobile.elc
: lisp
/org.el
437 lisp
/org-mouse.elc
: lisp
/org.el
438 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
439 lisp
/org-publish.elc
:
440 lisp
/org-protocol.elc
: lisp
/org.el
441 lisp
/org-remember.elc
: lisp
/org.el
442 lisp
/org-rmail.elc
: lisp
/org.el
443 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
444 lisp
/org-table.elc
: lisp
/org.el
445 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
446 lisp
/org-timer.elc
: lisp
/org.el
447 lisp
/org-vm.elc
: lisp
/org.el
448 lisp
/org-w3m.elc
: lisp
/org.el
449 lisp
/org-wl.elc
: lisp
/org.el
450 lisp
/org-xoxo.elc
: lisp
/org-exp.el