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-02-05 14:38:57 +00:00
|
|
|
LISPFILES0 = org.el org-publish.el org-mouse.el org-export-latex.el \
|
|
|
|
org-mac-message.el
|
2008-01-31 10:38:20 +00:00
|
|
|
LISPFILES = $(LISPFILES0) org-install.el
|
2008-01-31 10:32:35 +00:00
|
|
|
ELCFILES = $(LISPFILES:.el=.elc)
|
2008-01-31 10:34:42 +00:00
|
|
|
DOCFILES = org.texi org.pdf org
|
2008-01-31 10:35:36 +00:00
|
|
|
CARDFILES = orgcard.tex orgcard.pdf orgcard_letter.pdf
|
2008-01-31 10:32:35 +00:00
|
|
|
TEXIFILES = org.texi
|
|
|
|
INFOFILES = org
|
2008-01-31 10:37:24 +00:00
|
|
|
HG_RELEASES = ../org-mode-all-releases-hg/
|
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-02-06 16:44:59 +00:00
|
|
|
DISTFILES= README ${LISPFILES} ${DOCFILES} ${CARDFILES} \
|
|
|
|
Makefile dir 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
|
|
|
|
|
|
|
all: $(ELCFILES)
|
|
|
|
|
|
|
|
install: install-lisp
|
|
|
|
|
2008-02-06 16:44:59 +00:00
|
|
|
doc: org.html org.pdf orgcard.pdf orgcard_letter.pdf
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-01-31 10:34:04 +00:00
|
|
|
p:
|
|
|
|
make pdf && open org.pdf
|
|
|
|
|
|
|
|
c:
|
|
|
|
make card && gv orgcard.ps
|
|
|
|
|
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-01-31 10:38:20 +00:00
|
|
|
org-install.el: $(LISPFILES0)
|
2008-01-31 10:37:51 +00:00
|
|
|
$(BATCH) --eval "(require 'autoload)" \
|
|
|
|
--eval '(find-file "org-install.el")' \
|
|
|
|
--eval '(erase-buffer)' \
|
|
|
|
--eval '(generate-file-autoloads "org.el")' \
|
|
|
|
--eval '(generate-file-autoloads "org-mouse.el")' \
|
|
|
|
--eval '(generate-file-autoloads "org-publish.el")' \
|
|
|
|
--eval '(generate-file-autoloads "org-export-latex.el")' \
|
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-01-31 10:32:35 +00:00
|
|
|
org.elc: org.el
|
|
|
|
|
|
|
|
org-publish.elc: org-publish.el
|
|
|
|
|
|
|
|
org-install.elc: org-install.el
|
|
|
|
|
|
|
|
xemacs/noutline.elc: xemacs/noutline.el
|
|
|
|
|
2008-01-31 10:36:08 +00:00
|
|
|
org: org.texi
|
|
|
|
$(MAKEINFO) --no-split org.texi -o org
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
org.pdf: org.texi
|
|
|
|
$(TEXI2PDF) org.texi
|
|
|
|
|
|
|
|
org.html: org.texi
|
2008-01-31 10:38:20 +00:00
|
|
|
$(TEXI2HTML) --no-split -o org.html org.texi
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
orgcard.dvi: orgcard.tex
|
|
|
|
tex orgcard.tex
|
|
|
|
|
|
|
|
orgcard.pdf: orgcard.dvi
|
|
|
|
dvips -q -f -t landscape orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard.pdf -c .setpdfwrite -
|
|
|
|
|
|
|
|
orgcard.ps: orgcard.dvi
|
|
|
|
dvips -t landscape -o orgcard.ps orgcard.dvi
|
|
|
|
|
2008-01-31 10:34:42 +00:00
|
|
|
orgcard_letter.dvi: orgcard.tex
|
|
|
|
perl -pe 's/letterpaper=0/letterpaper=1/' orgcard.tex > orgcard_letter.tex
|
|
|
|
tex orgcard_letter.tex
|
|
|
|
|
|
|
|
orgcard_letter.pdf: orgcard_letter.dvi
|
|
|
|
dvips -q -f -t landscape orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard_letter.pdf -c .setpdfwrite -
|
|
|
|
|
|
|
|
orgcard_letter.ps: orgcard_letter.dvi
|
|
|
|
dvips -t landscape -o orgcard_letter.ps orgcard_letter.dvi
|
|
|
|
|
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:
|
|
|
|
(cd ORGWEBPAGE; emacs -batch -l ~/.emacs index.org -f org-publish-current-project)
|
|
|
|
|
2008-01-31 15:04:26 +00:00
|
|
|
web:
|
|
|
|
make webfiles
|
|
|
|
(cd ORGWEBPAGE/tmp; lftp -f ../../../org-mode-proprietary/ftp_upload_website)
|
|
|
|
|
2008-01-31 10:38:20 +00:00
|
|
|
html: org.html
|
|
|
|
|
|
|
|
html_split: org.texi
|
|
|
|
rm -rf manual
|
|
|
|
mkdir manual
|
|
|
|
$(TEXI2HTML) -o manual org.texi
|
|
|
|
|
2008-01-31 10:36:08 +00:00
|
|
|
info:
|
|
|
|
$(MAKEINFO) --no-split org.texi -o org
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-01-31 10:33:46 +00:00
|
|
|
pdf: org.pdf
|
2008-01-31 10:32:35 +00:00
|
|
|
|
2008-01-31 10:34:42 +00:00
|
|
|
card: orgcard.pdf orgcard.ps orgcard_letter.pdf orgcard_letter.ps
|
2008-01-31 10:32:35 +00:00
|
|
|
|
|
|
|
distfile:
|
|
|
|
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
|
2008-01-31 10:36:18 +00:00
|
|
|
touch org.texi orgcard.tex
|
2008-01-31 10:36:08 +00:00
|
|
|
make info
|
2008-01-31 10:32:35 +00:00
|
|
|
make doc
|
2008-01-31 10:37:51 +00:00
|
|
|
make 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-02-06 16:44:59 +00:00
|
|
|
cp -r $(DISTFILES) org-$(TAG)/
|
|
|
|
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-01-31 10:38:20 +00:00
|
|
|
make html_split
|
|
|
|
rm -rf RELEASEDIR
|
|
|
|
$(MKDIR) RELEASEDIR
|
|
|
|
cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
|
|
|
|
cp org.pdf orgcard.pdf org.texi org.html RELEASEDIR
|
|
|
|
cp ORGWEBPAGE/tmp/*.html RELEASEDIR
|
2008-02-06 12:32:20 +00:00
|
|
|
# cp ORGWEBPAGE/tmp/*.el RELEASEDIR
|
2008-01-31 10:38:20 +00:00
|
|
|
cp ORGWEBPAGE/tmp/*.txt RELEASEDIR
|
|
|
|
cp ORGWEBPAGE/tmp/*.css RELEASEDIR
|
2008-02-06 12:32:20 +00:00
|
|
|
# cp ORGWEBPAGE/tmp/*.jpg 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:24 +00:00
|
|
|
(cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)
|
|
|
|
cp -r org-$(TAG)/* $(HG_RELEASES)
|
2008-01-31 10:38:26 +00:00
|
|
|
(cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag $(TAG))
|
2008-01-31 10:37:24 +00:00
|
|
|
|
|
|
|
trackrelease:
|
|
|
|
(cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)
|
|
|
|
cp -r org-$(TAG)/* $(HG_RELEASES)
|
2008-01-31 10:38:26 +00:00
|
|
|
(cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag $(TAG))
|
2008-01-31 10:37:28 +00:00
|
|
|
|
2008-01-31 15:04:26 +00:00
|
|
|
upload_release:
|
|
|
|
(cd RELEASEDIR; lftp -f ../../org-mode-proprietary/ftp_upload_release)
|
2008-01-31 10:38:20 +00:00
|
|
|
|
|
|
|
upload_manual:
|
2008-01-31 15:04:26 +00:00
|
|
|
lftp -f ../org-mode-proprietary/ftp_upload_manual
|
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
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ELCFILES) org.pdf org org.html orgcard.pdf orgcard.ps
|
|
|
|
rm -f *~
|
|
|
|
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs
|
|
|
|
rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
|
2008-01-31 15:04:26 +00:00
|
|
|
rm -f orgcard_letter.tex orgcard_letter.pdf
|
|
|
|
rm -f org-install.el
|
|
|
|
rm -rf manual
|
|
|
|
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-02-07 23:07:48 +00:00
|
|
|
git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
|