2008-01-31 10:32:35 +00: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
|
|
|
|
|
|
|
|
# Where local lisp files go.
|
|
|
|
lispdir = $(prefix)/share/emacs/site-lisp
|
|
|
|
|
|
|
|
# Where info files go.
|
|
|
|
infodir = $(prefix)/info
|
|
|
|
|
|
|
|
##----------------------------------------------------------------------
|
|
|
|
## YOU MAY NEED TO EDIT THESE
|
|
|
|
##----------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Using emacs in batch mode.
|
2008-01-31 10:35:19 +00:00
|
|
|
# BATCH=$(EMACS) -batch -q
|
2008-01-31 10:38:36 +00:00
|
|
|
# BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) \".\")"
|
|
|
|
|
|
|
|
BATCH=$(EMACS) -batch -q -eval \
|
|
|
|
"(progn (add-to-list (quote load-path) \".\") \
|
|
|
|
(add-to-list (quote load-path) \"$(lispdir)\"))"
|
|
|
|
|
2008-01-31 10:32:35 +00: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 10:38:20 +00:00
|
|
|
TEXI2HTML = makeinfo --html --number-sections
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
# How to move the byte compiled files to their destination.
|
|
|
|
MV = mv
|
|
|
|
|
|
|
|
# How to copy the lisp files to their distination.
|
|
|
|
CP = cp -p
|
|
|
|
|
|
|
|
##----------------------------------------------------------------------
|
|
|
|
## BELOW THIS LINE ON YOUR OWN RISK!
|
|
|
|
##----------------------------------------------------------------------
|
|
|
|
|
|
|
|
# The following variables need to be defined by the maintainer
|
2008-04-03 15:58:13 +00:00
|
|
|
LISPF = org.el \
|
2008-04-09 13:42:36 +00:00
|
|
|
org-archive.el \
|
|
|
|
org-colview.el \
|
2008-04-03 15:58:13 +00:00
|
|
|
org-compat.el \
|
|
|
|
org-macs.el \
|
|
|
|
org-clock.el \
|
|
|
|
org-table.el \
|
|
|
|
org-exp.el \
|
2008-04-09 13:42:36 +00:00
|
|
|
org-faces.el \
|
2008-04-03 15:58:13 +00:00
|
|
|
org-remember.el \
|
|
|
|
org-agenda.el \
|
|
|
|
org-publish.el \
|
|
|
|
org-mouse.el \
|
|
|
|
org-export-latex.el \
|
|
|
|
org-bbdb.el \
|
|
|
|
org-bibtex.el \
|
|
|
|
org-gnus.el \
|
|
|
|
org-info.el \
|
2008-04-07 06:32:00 +00:00
|
|
|
org-infojs.el \
|
2008-04-03 15:58:13 +00:00
|
|
|
org-irc.el \
|
|
|
|
org-mac-message.el \
|
|
|
|
org-mhe.el \
|
|
|
|
org-rmail.el \
|
|
|
|
org-vm.el \
|
|
|
|
org-wl.el
|
2008-03-22 15:52:18 +00:00
|
|
|
LISPFILES0 = $(LISPF:%=lisp/%)
|
|
|
|
LISPFILES = $(LISPFILES0) lisp/org-install.el
|
|
|
|
ELCFILES0 = $(LISPFILES0:.el=.elc)
|
2008-01-31 10:32:35 +00:00
|
|
|
ELCFILES = $(LISPFILES:.el=.elc)
|
2008-03-31 10:59:00 +00:00
|
|
|
DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir
|
2008-03-22 15:52:18 +00:00
|
|
|
CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
|
|
|
|
TEXIFILES = doc/org.texi
|
2008-03-30 18:33:07 +00:00
|
|
|
INFOFILES = doc/org
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-01-31 15:04:26 +00:00
|
|
|
|
2008-01-31 10:32:35 +00:00
|
|
|
.SUFFIXES: .el .elc .texi
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2008-03-31 10:59:00 +00:00
|
|
|
# Additional distribution files
|
|
|
|
DISTFILES_extra= Makefile ChangeLog request-assign-future.txt CONTRIB
|
2008-01-31 10:33:41 +00:00
|
|
|
DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-30 18:33:07 +00:00
|
|
|
default: $(ELCFILES)
|
2008-03-31 10:59:00 +00:00
|
|
|
|
2008-03-30 18:33:07 +00:00
|
|
|
all: $(ELCFILES) $(INFOFILES)
|
2008-03-31 10:59:00 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
compile: $(ELCFILES0)
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
install: install-lisp
|
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-01-31 10:34:04 +00:00
|
|
|
p:
|
2008-03-22 15:52:18 +00:00
|
|
|
make pdf && open doc/org.pdf
|
2008-01-31 10:34:04 +00:00
|
|
|
|
|
|
|
c:
|
2008-03-22 15:52:18 +00:00
|
|
|
make card && gv doc/orgcard.ps
|
2008-01-31 10:34:04 +00:00
|
|
|
|
2008-01-31 10:32:35 +00: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-noutline: xemacs/noutline.elc
|
|
|
|
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
|
|
|
|
$(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
|
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
autoloads: lisp/org-install.el
|
|
|
|
|
|
|
|
lisp/org-install.el: $(LISPFILES0) Makefile
|
2008-01-31 10:37:51 +00:00
|
|
|
$(BATCH) --eval "(require 'autoload)" \
|
|
|
|
--eval '(find-file "org-install.el")' \
|
|
|
|
--eval '(erase-buffer)' \
|
2008-03-22 15:52:18 +00:00
|
|
|
--eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
|
2008-01-31 10:38:00 +00:00
|
|
|
--eval '(insert "\n(provide (quote org-install))\n")' \
|
2008-01-31 10:37:51 +00:00
|
|
|
--eval '(save-buffer)'
|
2008-03-22 15:52:18 +00:00
|
|
|
mv org-install.el lisp
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
xemacs/noutline.elc: xemacs/noutline.el
|
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/org: doc/org.texi
|
|
|
|
(cd doc; $(MAKEINFO) --no-split org.texi -o org)
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/org.pdf: doc/org.texi
|
|
|
|
(cd doc; $(TEXI2PDF) org.texi)
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/org.html: doc/org.texi
|
|
|
|
(cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/orgcard.dvi: doc/orgcard.tex
|
|
|
|
(cd doc; tex orgcard.tex)
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/orgcard.pdf: doc/orgcard.dvi
|
|
|
|
dvips -q -f -t landscape doc/orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard.pdf -c .setpdfwrite -
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/orgcard.ps: doc/orgcard.dvi
|
|
|
|
dvips -t landscape -o doc/orgcard.ps doc/orgcard.dvi
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/orgcard_letter.dvi: doc/orgcard.tex
|
|
|
|
perl -pe 's/letterpaper=0/letterpaper=1/' doc/orgcard.tex > doc/orgcard_letter.tex
|
|
|
|
(cd doc; tex orgcard_letter.tex)
|
2008-01-31 10:34:42 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/orgcard_letter.pdf: doc/orgcard_letter.dvi
|
|
|
|
dvips -q -f -t landscape doc/orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard_letter.pdf -c .setpdfwrite -
|
2008-01-31 10:34:42 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
doc/orgcard_letter.ps: doc/orgcard_letter.dvi
|
|
|
|
dvips -t landscape -o doc/orgcard_letter.ps doc/orgcard_letter.dvi
|
2008-01-31 10:34:42 +00:00
|
|
|
|
2008-01-31 10:32:35 +00:00
|
|
|
# Below here are special targets for maintenance only
|
|
|
|
|
2008-01-31 10:38:20 +00:00
|
|
|
webfiles:
|
2008-03-31 10:59:00 +00:00
|
|
|
(cd ORGWEBPAGE; emacs -batch -l ~/.emacs index.org -eval '(org-publish (assoc "orgwebpage" org-publish-project-alist))')
|
|
|
|
(cd ORGWEBPAGE/tmp; rm *~)
|
2008-01-31 10:38:20 +00:00
|
|
|
|
2008-01-31 15:04:26 +00:00
|
|
|
web:
|
|
|
|
make webfiles
|
2008-03-31 10:59:00 +00:00
|
|
|
(cd ORGWEBPAGE/tmp; lftp -f ../../../org-mode-proprietary/ftp_upload_website_legito)
|
2008-01-31 15:04:26 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
html: doc/org.html
|
2008-01-31 10:38:20 +00:00
|
|
|
|
2008-04-01 14:42:15 +00:00
|
|
|
html_manual: doc/org.texi
|
2008-03-22 15:52:18 +00:00
|
|
|
rm -rf doc/manual
|
|
|
|
mkdir doc/manual
|
|
|
|
$(TEXI2HTML) -o doc/manual doc/org.texi
|
2008-01-31 10:38:20 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
info: doc/org
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
pdf: doc/org.pdf
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-22 15:52:18 +00:00
|
|
|
card: doc/orgcard.pdf doc/orgcard.ps doc/orgcard_letter.pdf doc/orgcard_letter.ps
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
distfile:
|
|
|
|
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
|
2008-03-31 10:59:00 +00:00
|
|
|
touch doc/org.texi doc/orgcard.tex # force update
|
2008-01-31 10:36:08 +00:00
|
|
|
make info
|
2008-01-31 10:32:35 +00:00
|
|
|
make doc
|
2008-03-31 10:59:00 +00:00
|
|
|
make lisp/org-install.el
|
2008-01-31 10:32:35 +00:00
|
|
|
rm -rf org-$(TAG) org-$(TAG).zip
|
|
|
|
$(MKDIR) org-$(TAG)
|
2008-01-31 10:33:41 +00:00
|
|
|
$(MKDIR) org-$(TAG)/xemacs
|
2008-03-31 10:59:00 +00:00
|
|
|
$(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 16:44:59 +00:00
|
|
|
cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
|
2008-01-31 10:32:35 +00:00
|
|
|
zip -r org-$(TAG).zip org-$(TAG)
|
|
|
|
gtar zcvf org-$(TAG).tar.gz org-$(TAG)
|
|
|
|
|
2008-01-31 10:36:18 +00:00
|
|
|
release:
|
|
|
|
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
|
2008-01-31 10:38:20 +00:00
|
|
|
make webfiles
|
2008-01-31 10:36:18 +00:00
|
|
|
make distfile
|
|
|
|
make doc
|
2008-04-01 14:42:15 +00:00
|
|
|
make html_manual
|
2008-01-31 10:38:20 +00:00
|
|
|
rm -rf RELEASEDIR
|
|
|
|
$(MKDIR) RELEASEDIR
|
|
|
|
cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
|
2008-04-02 06:21:43 +00:00
|
|
|
cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
|
2008-01-31 10:38:20 +00:00
|
|
|
cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
|
|
|
|
cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
|
2008-01-31 10:37:28 +00:00
|
|
|
|
2008-01-31 15:04:26 +00:00
|
|
|
upload_release:
|
2008-03-31 10:59:00 +00:00
|
|
|
(cd RELEASEDIR; lftp -f ../../org-mode-proprietary/ftp_upload_release_legito)
|
2008-01-31 10:38:20 +00:00
|
|
|
|
|
|
|
upload_manual:
|
2008-03-31 10:59:00 +00:00
|
|
|
lftp -f ../org-mode-proprietary/ftp_upload_manual_legito
|
2008-01-31 10:37:28 +00:00
|
|
|
|
|
|
|
relup:
|
|
|
|
make release
|
2008-01-31 15:04:26 +00:00
|
|
|
make upload_release
|
2008-01-31 10:38:20 +00:00
|
|
|
make upload_manual
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-03-28 10:38:31 +00:00
|
|
|
cleanelc:
|
2008-03-22 15:52:18 +00:00
|
|
|
rm -f $(ELCFILES)
|
2008-03-28 10:38:31 +00:00
|
|
|
cleandoc:
|
2008-03-22 15:52:18 +00:00
|
|
|
(cd doc; rm -f org.pdf org org.html orgcard.pdf orgcard.ps)
|
|
|
|
(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 10:38:31 +00:00
|
|
|
(cd doc; rm -rf manual)
|
|
|
|
clean:
|
|
|
|
make cleanelc
|
|
|
|
make cleandoc
|
|
|
|
rm -f *~ */*~ */*/*~
|
2008-01-31 15:04:26 +00:00
|
|
|
rm -rf RELEASEDIR
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
.el.elc:
|
|
|
|
$(ELC) $<
|
|
|
|
|
2008-01-31 15:04:26 +00:00
|
|
|
|
|
|
|
push:
|
2008-02-07 23:07:48 +00:00
|
|
|
git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
|
|
|
|
|
|
|
|
pushtag:
|
2008-02-19 08:18:46 +00:00
|
|
|
git-tag -m "Adding tag" -a $(TAG)
|
2008-04-14 12:59:37 +00:00
|
|
|
git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
|
|
|
lisp/org.elc: lisp/org-macs.elc lisp/org-compat.elc lisp/org-faces.elc
|
|
|
|
lisp/org-agenda.elc: lisp/org.elc
|
|
|
|
lisp/org-archive.elc: lisp/org.elc
|
|
|
|
lisp/org-bbdb.elc: lisp/org.elc
|
|
|
|
lisp/org-bibtex.elc: lisp/org.elc
|
|
|
|
lisp/org-clock.elc: lisp/org.elc
|
|
|
|
lisp/org-colview.elc: lisp/org.elc
|
|
|
|
lisp/org-compat.elc:
|
|
|
|
lisp/org-exp.elc: lisp/org.elc lisp/org-agenda.elc
|
|
|
|
lisp/org-export-latex.elc: lisp/org.elc lisp/org-exp.elc
|
|
|
|
lisp/org-faces.elc: lisp/org-macs.elc lisp/org-compat.elc
|
|
|
|
lisp/org-gnus.elc: lisp/org.elc
|
|
|
|
lisp/org-info.elc: lisp/org.elc
|
|
|
|
lisp/org-infojs.elc: lisp/org.elc lisp/org-exp.elc
|
|
|
|
lisp/org-irc.elc: lisp/org.elc
|
|
|
|
lisp/org-mac-message.elc: lisp/org.elc
|
|
|
|
lisp/org-macs.elc:
|
|
|
|
lisp/org-mew.elc: lisp/org.elc
|
|
|
|
lisp/org-mhe.elc: lisp/org.elc
|
|
|
|
lisp/org-mouse.elc: lisp/org.elc
|
|
|
|
lisp/org-publish.elc:
|
|
|
|
lisp/org-remember.elc: lisp/org.elc
|
|
|
|
lisp/org-rmail.elc: lisp/org.elc
|
|
|
|
lisp/org-table.elc: lisp/org.elc
|
|
|
|
lisp/org-vm.elc: lisp/org.elc
|
|
|
|
lisp/org-wl.elc: lisp/org.elc
|