org-mode/Makefile

416 lines
12 KiB
Makefile
Raw Normal View History

2008-01-31 05:32:35 -05:00
# Makefile - for the org-mode distribution
#
# Maintainer: Carsten Dominik <dominik@science.uva.nl>
# Version: VERSIONTAG
#
# To install org-mode, edit the Makefile, type `make', then `make install'.
# To create the PDF and HTML documentation files, type `make doc'.
##----------------------------------------------------------------------
## YOU MUST EDIT THE FOLLOWING LINES
##----------------------------------------------------------------------
# Name of your emacs binary
EMACS=emacs
# Where local software is found
prefix=/usr/local
2008-01-31 05:32:35 -05:00
# Where local lisp files go.
lispdir = $(prefix)/share/emacs/site-lisp
# Where info files go.
infodir = $(prefix)/share/info
2008-01-31 05:32:35 -05:00
##----------------------------------------------------------------------
## YOU MAY NEED TO EDIT THESE
##----------------------------------------------------------------------
# Using emacs in batch mode.
2008-01-31 05:38:36 -05:00
BATCH=$(EMACS) -batch -q -no-site-file -eval \
"(setq load-path (cons (expand-file-name\
2010-06-23 14:24:33 -04:00
\"langs\"\
(expand-file-name \"babel\" (expand-file-name \"./lisp/\")))\
(cons (expand-file-name \"babel\" (expand-file-name \"./lisp/\"))\
(cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))))"
2008-01-31 05:38:36 -05:00
2008-01-31 05:32:35 -05:00
# Specify the byte-compiler for compiling org-mode files
ELC= $(BATCH) -f batch-byte-compile
# How to make a pdf file from a texinfo file
TEXI2PDF = texi2pdf
# How to create directories
MKDIR = mkdir -p
# How to create the info files from the texinfo file
MAKEINFO = makeinfo
# How to create the HTML file
2008-01-31 05:38:20 -05:00
TEXI2HTML = makeinfo --html --number-sections
2010-04-28 02:53:17 -04:00
TEXI2HTMLNOPSLIT = makeinfo --html --no-split --number-sections
2008-01-31 05:32:35 -05:00
# How to copy the lisp files and elc files to their distination.
2008-01-31 05:32:35 -05:00
CP = cp -p
# Name of the program to install info files
INSTALL_INFO=install-info
2008-01-31 05:32:35 -05:00
##----------------------------------------------------------------------
## BELOW THIS LINE ON YOUR OWN RISK!
##----------------------------------------------------------------------
# The following variables need to be defined by the maintainer
LISPF = org.el \
org-agenda.el \
org-ascii.el \
org-attach.el \
org-archive.el \
org-bbdb.el \
org-beamer.el \
org-bibtex.el \
2010-06-23 14:20:49 -04:00
org-capture.el \
org-clock.el \
org-colview.el \
org-colview-xemacs.el \
org-compat.el \
org-crypt.el \
org-ctags.el \
org-datetree.el \
org-docview.el \
org-entities.el \
org-exp.el \
org-exp-blocks.el \
org-docbook.el \
org-faces.el \
org-feed.el \
org-footnote.el \
org-freemind.el \
org-gnus.el \
org-habit.el \
org-html.el \
org-icalendar.el \
org-id.el \
org-indent.el \
org-info.el \
org-inlinetask.el \
org-jsinfo.el \
org-irc.el \
org-latex.el \
org-list.el \
org-mac-message.el \
org-macs.el \
org-mew.el \
org-mhe.el \
2010-06-23 14:20:49 -04:00
org-mks.el \
org-mobile.el \
org-mouse.el \
org-publish.el \
org-plot.el \
org-protocol.el \
org-remember.el \
org-rmail.el \
org-src.el \
org-table.el \
org-taskjuggler.el \
org-timer.el \
org-vm.el \
org-w3m.el \
org-wl.el \
org-xoxo.el \
babel/ob.el \
babel/ob-table.el \
babel/ob-lob.el \
babel/ob-ref.el \
babel/ob-exp.el \
babel/ob-tangle.el \
babel/ob-comint.el \
babel/ob-keys.el \
babel/langs/ob-emacs-lisp.el
LISPFILES0 = $(LISPF:%=lisp/%)
LISPFILES = $(LISPFILES0) lisp/org-install.el
ELCFILES0 = $(LISPFILES0:.el=.elc)
2008-01-31 05:32:35 -05:00
ELCFILES = $(LISPFILES:.el=.elc)
2010-05-06 11:48:04 -04:00
DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir \
doc/pdflayout.sty doc/.nosearch \
2010-04-28 02:53:17 -04:00
doc/orgguide.texi doc/orgguide.pdf
CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
TEXIFILES = doc/org.texi
2008-03-30 14:33:07 -04:00
INFOFILES = doc/org
2008-01-31 05:32:35 -05:00
2008-01-31 05:32:35 -05:00
.SUFFIXES: .el .elc .texi
SHELL = /bin/sh
# Additional distribution files
DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
2008-01-31 05:33:41 -05:00
DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
2008-01-31 05:32:35 -05:00
2008-03-30 14:33:07 -04:00
default: $(ELCFILES)
2008-03-30 14:33:07 -04:00
all: $(ELCFILES) $(INFOFILES)
up2: update
sudo ${MAKE} install
2009-06-02 04:29:06 -04:00
update:
git pull
${MAKE} clean
${MAKE} all
2009-06-02 04:29:06 -04:00
compile: $(ELCFILES0)
2008-01-31 05:32:35 -05:00
install: install-lisp
2010-04-28 02:53:17 -04:00
doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgguide.pdf
2008-01-31 05:32:35 -05:00
2008-01-31 05:34:04 -05:00
p:
${MAKE} pdf && open doc/org.pdf
2008-01-31 05:34:04 -05:00
2010-04-28 02:53:17 -04:00
g:
${MAKE} pdf && open doc/orgguide.pdf
2008-01-31 05:32:35 -05:00
install-lisp: $(LISPFILES) $(ELCFILES)
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
$(CP) $(LISPFILES) $(lispdir)
$(CP) $(ELCFILES) $(lispdir)
install-info: $(INFOFILES)
if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
$(CP) $(INFOFILES) $(infodir)
$(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
2008-01-31 05:32:35 -05:00
install-info-debian: $(INFOFILES)
$(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
2008-01-31 05:32:35 -05:00
install-noutline: xemacs/noutline.elc
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
$(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
autoloads: lisp/org-install.el
lisp/org-install.el: $(LISPFILES0) Makefile
2008-01-31 05:37:51 -05:00
$(BATCH) --eval "(require 'autoload)" \
--eval '(find-file "org-install.el")' \
--eval '(erase-buffer)' \
--eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
--eval "(insert \"(add-to-list 'load-path (expand-file-name \\\"babel\\\" (file-name-directory (or load-file-name (buffer-file-name)))))\")" \
--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" \
2008-01-31 05:38:00 -05:00
--eval '(insert "\n(provide (quote org-install))\n")' \
2008-01-31 05:37:51 -05:00
--eval '(save-buffer)'
mv org-install.el lisp
2008-01-31 05:32:35 -05:00
xemacs/noutline.elc: xemacs/noutline.el
doc/org: doc/org.texi
(cd doc; $(MAKEINFO) --no-split org.texi -o org)
2008-01-31 05:32:35 -05:00
doc/org.pdf: doc/org.texi
(cd doc; $(TEXI2PDF) org.texi)
2008-01-31 05:32:35 -05:00
2010-04-28 02:53:17 -04:00
doc/orgguide.pdf: doc/orgguide.texi
(cd doc; $(TEXI2PDF) orgguide.texi)
doc/org.html: doc/org.texi
(cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
UTILITIES/manfull.pl doc/org.html
2008-01-31 05:32:35 -05:00
doc/orgcard.pdf: doc/orgcard.tex
(cd doc; pdftex orgcard.tex)
2008-01-31 05:34:42 -05:00
2010-05-12 10:21:00 -04:00
doc/orgcard.txt: doc/orgcard.tex
(cd doc; perl ../UTILITIES/orgcard2txt.pl orgcard.tex > orgcard.txt)
doc/orgcard_letter.tex: doc/orgcard.tex
perl -pe 's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
doc/orgcard.tex > doc/orgcard_letter.tex
2008-01-31 05:34:42 -05:00
doc/orgcard_letter.pdf: doc/orgcard_letter.tex
(cd doc; pdftex orgcard_letter.tex)
2008-01-31 05:34:42 -05:00
2008-01-31 05:32:35 -05:00
# Below here are special targets for maintenance only
2008-04-15 04:14:06 -04:00
updateweb:
2009-12-10 06:20:18 -05:00
ssh cdominik@orgmode.org 'pull-worg-org.sh && publish-worg-org.sh'
html: doc/org.html
2008-01-31 05:38:20 -05:00
html_manual: doc/org.texi
rm -rf doc/manual
mkdir doc/manual
$(TEXI2HTML) -o doc/manual doc/org.texi
UTILITIES/mansplit.pl doc/manual/*.html
2008-01-31 05:38:20 -05:00
2010-04-28 02:53:17 -04:00
html_guide: doc/orgguide.texi
rm -rf doc/guide
mkdir doc/guide
$(TEXI2HTML) -o doc/guide doc/orgguide.texi
UTILITIES/guidesplit.pl doc/guide/*.html
info: doc/org
2008-01-31 05:32:35 -05:00
2010-04-28 02:53:17 -04:00
pdf: doc/org.pdf doc/orgguide.pdf
2008-01-31 05:32:35 -05:00
2010-05-12 10:21:00 -04:00
card: doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgcard.txt
2008-01-31 05:32:35 -05:00
distfile:
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
touch doc/org.texi doc/orgcard.tex # force update
${MAKE} cleancontrib
${MAKE} info
${MAKE} doc
${MAKE} lisp/org-install.el
2008-01-31 05:32:35 -05:00
rm -rf org-$(TAG) org-$(TAG).zip
$(MKDIR) org-$(TAG)
2008-01-31 05:33:41 -05:00
$(MKDIR) org-$(TAG)/xemacs
$(MKDIR) org-$(TAG)/doc
$(MKDIR) org-$(TAG)/lisp
cp -r $(LISPFILES) org-$(TAG)/lisp
cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
cp -r $(DISTFILES_extra) org-$(TAG)/
cp -r README_DIST org-$(TAG)/README
cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
2008-02-06 11:44:59 -05:00
cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
2008-01-31 05:32:35 -05:00
zip -r org-$(TAG).zip org-$(TAG)
gtar zcvf org-$(TAG).tar.gz org-$(TAG)
2008-01-31 05:36:18 -05:00
release:
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
${MAKE} distfile
${MAKE} doc
UTILITIES/gplmanual.pl
${MAKE} html_manual
2010-04-28 02:53:17 -04:00
${MAKE} html_guide
2008-01-31 05:38:20 -05:00
rm -rf RELEASEDIR
$(MKDIR) RELEASEDIR
cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
2010-05-12 10:21:00 -04:00
cp doc/orgguide.pdf doc/orgcard.txt RELEASEDIR
2008-01-31 05:38:20 -05:00
cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
2008-01-31 05:37:28 -05:00
upload_release:
rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
2008-01-31 05:38:20 -05:00
upload_manual:
2009-01-27 03:11:34 -05:00
rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
2010-04-28 02:53:17 -04:00
rsync -avuz --delete doc/guide/ cdominik@orgmode.org:orgmode.org/guide/
2008-01-31 05:37:28 -05:00
2008-04-14 18:06:34 -04:00
relup0:
${MAKE} release
${MAKE} upload_release
2008-04-14 18:06:34 -04:00
2008-01-31 05:37:28 -05:00
relup:
${MAKE} release
${MAKE} upload_release
${MAKE} upload_manual
2008-01-31 05:32:35 -05:00
2008-04-25 09:44:07 -04:00
db:
grep -e '(debug)' lisp/*el
2008-09-22 06:15:33 -04:00
cleancontrib:
find contrib -name \*~ -exec rm {} \;
2008-03-28 06:38:31 -04:00
cleanelc:
rm -f $(ELCFILES)
2008-03-28 06:38:31 -04:00
cleandoc:
(cd doc; rm -f org.pdf org org.html orgcard.pdf)
(cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
(cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
(cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
2008-03-28 06:38:31 -04:00
(cd doc; rm -rf manual)
cleanrel:
rm -rf RELEASEDIR
rm -rf org-6.*
2009-11-05 09:50:54 -05:00
rm -rf org-6*zip org-6*tar.gz
2008-03-28 06:38:31 -04:00
clean:
${MAKE} cleanelc
${MAKE} cleandoc
${MAKE} cleanrel
2008-03-28 06:38:31 -04:00
rm -f *~ */*~ */*/*~
cleanall:
${MAKE} clean
rm -f lisp/org-install.el
2008-01-31 05:32:35 -05:00
.el.elc:
$(ELC) $<
push:
git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
pushtag:
2008-02-19 03:18:46 -05:00
git-tag -m "Adding tag" -a $(TAG)
git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
2008-04-14 18:06:34 -04:00
pushreleasetag:
git-tag -m "Adding release tag" -a release_$(TAG)
2008-04-14 18:06:34 -04:00
git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
dummy:
echo ${prefix}
# Dependencies
lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
lisp/org-agenda.elc: lisp/org.el
lisp/org-ascii.elc: lisp/org-exp.el
lisp/org-attach.elc: lisp/org.el lisp/org-id.el
lisp/org-archive.elc: lisp/org.el
lisp/org-bbdb.elc: lisp/org.el
2009-12-11 02:53:29 -05:00
lisp/org-beamer.elc: lisp/org.el
lisp/org-bibtex.elc: lisp/org.el
lisp/org-capture.elc: lisp/org.el lisp/org-mks.el
lisp/org-clock.elc: lisp/org.el
lisp/org-colview.elc: lisp/org.el
lisp/org-colview-xemacs.elc: lisp/org.el
lisp/org-compat.elc: lisp/org-macs.el
lisp/org-crypt.elc: lisp/org-crypt.el lisp/org.el
2010-01-02 02:24:54 -05:00
lisp/org-ctags.elc: lisp/org.el
lisp/org-datetree.elc: lisp/org.el
lisp/org-docview.elc: lisp/org.el
2010-04-02 17:52:50 -04:00
lisp/org-entities.elc:
lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
2009-06-17 12:16:26 -04:00
lisp/org-exp-blocks.elc: lisp/org.el
2009-12-11 02:53:29 -05:00
lisp/org-latex.elc: lisp/org.el lisp/org-exp.el lisp/org-beamer.el
lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
lisp/org-feed.elc: lisp/org.el
lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
lisp/org-freemind.elc: lisp/org.el
lisp/org-gnus.elc: lisp/org.el
lisp/org-html.elc: lisp/org-exp.el
lisp/org-habit.elc: lisp/org.el lisp/org-agenda.el
lisp/org-icalendar.elc: lisp/org-exp.el
lisp/org-id.elc: lisp/org.el
lisp/org-indent.elc: lisp/org.el lisp/org-macs.el lisp/org-compat.el
lisp/org-info.elc: lisp/org.el
lisp/org-inlinetask.elc:
lisp/org-irc.elc: lisp/org.el
lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
lisp/org-mac-message.elc: lisp/org.el
lisp/org-macs.elc:
lisp/org-mew.elc: lisp/org.el
lisp/org-mhe.elc: lisp/org.el
lisp/org-mks.elc:
lisp/org-mobile.elc: lisp/org.el
lisp/org-mouse.elc: lisp/org.el
lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
lisp/org-publish.elc:
lisp/org-protocol.elc: lisp/org.el
lisp/org-remember.elc: lisp/org.el
lisp/org-rmail.elc: lisp/org.el
lisp/org-src.elc: lisp/org-macs.el lisp/org-compat.el
lisp/org-table.elc: lisp/org.el
lisp/org-taskjuggler.elc: lisp/org.el lisp/org-exp.el
lisp/org-timer.elc: lisp/org.el
lisp/org-vm.elc: lisp/org.el
lisp/org-w3m.elc: lisp/org.el
lisp/org-wl.elc: lisp/org.el
lisp/org-xoxo.elc: lisp/org-exp.el