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 \
149 LISPFILES0
= $(LISPF
:%=lisp
/%)
150 LISPFILES
= $(LISPFILES0
) lisp
/org-install.el
151 ELCFILES0
= $(LISPFILES0
:.el
=.elc
)
152 ELCFILES
= $(LISPFILES
:.el
=.elc
)
153 DOCFILES
= doc
/org.texi doc
/org.pdf doc
/org doc
/dir \
154 doc
/pdflayout.sty doc
/.nosearch \
155 doc
/orgguide.texi doc
/orgguide.pdf
156 CARDFILES
= doc
/orgcard.
tex doc
/orgcard.pdf doc
/orgcard_letter.pdf
157 TEXIFILES
= doc
/org.texi
161 .SUFFIXES
: .el .elc .texi
164 # Additional distribution files
165 DISTFILES_extra
= Makefile ChangeLog request-assign-future.txt contrib
166 DISTFILES_xemacs
= xemacs
/noutline.el xemacs
/ps-print-invisible.el xemacs
/README
168 default
: $(ELCFILES
) $(ELCBFILES
)
170 all: $(ELCFILES
) $(ELCBFILES
) $(INFOFILES
)
180 compile
: $(ELCFILES0
) $(ELCBFILES
)
182 install: install-lisp
184 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf doc
/orgguide.pdf
187 ${MAKE} pdf
&& open doc
/org.pdf
190 ${MAKE} pdf
&& open doc
/orgguide.pdf
192 install-lisp
: $(LISPFILES
) $(ELCFILES
)
193 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
194 $(CP
) $(LISPFILES
) $(lispdir
)
195 $(CP
) $(ELCFILES
) $(lispdir
)
197 install-info
: $(INFOFILES
)
198 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
199 $(CP
) $(INFOFILES
) $(infodir)
200 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
202 install-info-debian
: $(INFOFILES
)
203 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
205 install-noutline
: xemacs
/noutline.elc
206 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
207 $(CP
) xemacs
/noutline.el xemacs
/noutline.elc
$(lispdir
)
209 autoloads
: lisp
/org-install.el
211 lisp
/org-install.el
: $(LISPFILES0
) Makefile
212 $(BATCH
) --eval
"(require 'autoload)" \
213 --eval
'(find-file "org-install.el")' \
214 --eval
'(erase-buffer)' \
215 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
216 --eval
'(insert "\n(provide (quote org-install))\n")' \
217 --eval
'(save-buffer)'
218 mv org-install.el lisp
220 xemacs
/noutline.elc
: xemacs
/noutline.el
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 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
275 touch doc
/org.texi doc
/orgcard.
tex # force update
279 ${MAKE} lisp
/org-install.el
280 rm -rf org-
$(TAG
) org-
$(TAG
).zip
282 $(MKDIR
) org-
$(TAG
)/xemacs
283 $(MKDIR
) org-
$(TAG
)/doc
284 $(MKDIR
) org-
$(TAG
)/lisp
285 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
286 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
287 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
288 cp
-r README_DIST org-
$(TAG
)/README
289 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
290 cp
-r
$(DISTFILES_xemacs
) org-
$(TAG
)/xemacs
/
291 zip
-r org-
$(TAG
).zip org-
$(TAG
)
292 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
295 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
298 UTILITIES
/gplmanual.pl
303 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
304 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
305 cp doc
/orgguide.pdf doc
/orgcard.txt RELEASEDIR
306 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
307 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
310 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
313 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
314 rsync
-avuz
--delete doc
/guide
/ cdominik@orgmode.org
:orgmode.org
/guide
/
318 ${MAKE} upload_release
322 ${MAKE} upload_release
323 ${MAKE} upload_manual
326 grep
-e
'(debug)' lisp
/*el
329 find contrib
-name \
*~
-exec
rm {} \
;
334 (cd doc
; rm -f org.pdf org org.html orgcard.pdf
)
335 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
336 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
337 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
338 (cd doc
; rm -rf manual
)
343 rm -rf org-6
*zip org-6
*tar.gz
353 rm -f lisp
/org-install.el
360 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
363 git-tag
-m
"Adding tag" -a
$(TAG
)
364 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
367 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
368 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
375 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
376 lisp
/org-agenda.elc
: lisp
/org.el
377 lisp
/org-ascii.elc
: lisp
/org-exp.el
378 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
379 lisp
/org-archive.elc
: lisp
/org.el
380 lisp
/org-bbdb.elc
: lisp
/org.el
381 lisp
/org-beamer.elc
: lisp
/org.el
382 lisp
/org-bibtex.elc
: lisp
/org.el
383 lisp
/org-capture.elc
: lisp
/org.el lisp
/org-mks.el
384 lisp
/org-clock.elc
: lisp
/org.el
385 lisp
/org-colview.elc
: lisp
/org.el
386 lisp
/org-colview-xemacs.elc
: lisp
/org.el
387 lisp
/org-compat.elc
: lisp
/org-macs.el
388 lisp
/org-crypt.elc
: lisp
/org-crypt.el lisp
/org.el
389 lisp
/org-ctags.elc
: lisp
/org.el
390 lisp
/org-datetree.elc
: lisp
/org.el
391 lisp
/org-docview.elc
: lisp
/org.el
392 lisp
/org-entities.elc
:
393 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
394 lisp
/org-exp-blocks.elc
: lisp
/org.el
395 lisp
/org-latex.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-beamer.el
396 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
397 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
398 lisp
/org-feed.elc
: lisp
/org.el
399 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
400 lisp
/org-freemind.elc
: lisp
/org.el
401 lisp
/org-gnus.elc
: lisp
/org.el
402 lisp
/org-html.elc
: lisp
/org-exp.el
403 lisp
/org-habit.elc
: lisp
/org.el lisp
/org-agenda.el
404 lisp
/org-icalendar.elc
: lisp
/org-exp.el
405 lisp
/org-id.elc
: lisp
/org.el
406 lisp
/org-indent.elc
: lisp
/org.el lisp
/org-macs.el lisp
/org-compat.el
407 lisp
/org-info.elc
: lisp
/org.el
408 lisp
/org-inlinetask.elc
:
409 lisp
/org-irc.elc
: lisp
/org.el
410 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
411 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
412 lisp
/org-mac-message.elc
: lisp
/org.el
414 lisp
/org-mew.elc
: lisp
/org.el
415 lisp
/org-mhe.elc
: lisp
/org.el
417 lisp
/org-mobile.elc
: lisp
/org.el
418 lisp
/org-mouse.elc
: lisp
/org.el
419 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
420 lisp
/org-publish.elc
:
421 lisp
/org-protocol.elc
: lisp
/org.el
422 lisp
/org-remember.elc
: lisp
/org.el
423 lisp
/org-rmail.elc
: lisp
/org.el
424 lisp
/org-src.elc
: lisp
/org-macs.el lisp
/org-compat.el
425 lisp
/org-table.elc
: lisp
/org.el
426 lisp
/org-taskjuggler.elc
: lisp
/org.el lisp
/org-exp.el
427 lisp
/org-timer.elc
: lisp
/org.el
428 lisp
/org-vm.elc
: lisp
/org.el
429 lisp
/org-w3m.elc
: lisp
/org.el
430 lisp
/org-wl.elc
: lisp
/org.el
431 lisp
/org-xoxo.elc
: lisp
/org-exp.el