Release 6.25f
[org-mode/org-tableheadings.git] / Makefile
blobd33645388f740119e33d0549434e2792dd4d301c
1 # Makefile - for the org-mode distribution
3 # Maintainer: Carsten Dominik <dominik@science.uva.nl>
4 # Version: VERSIONTAG
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
14 EMACS=emacs
16 # Where local software is found
17 prefix=/usr/local
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.
30 # BATCH=$(EMACS) -batch -q
31 # BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) \".\")"
33 BATCH=$(EMACS) -batch -q -eval \
34 "(progn (add-to-list (quote load-path) (expand-file-name \"./lisp/\")) \
35 (add-to-list (quote load-path) \"$(lispdir)\"))"
37 # Specify the byte-compiler for compiling org-mode files
38 ELC= $(BATCH) -f batch-byte-compile
40 # How to make a pdf file from a texinfo file
41 TEXI2PDF = texi2pdf
43 # How to create directories
44 MKDIR = mkdir -p
46 # How to create the info files from the texinfo file
47 MAKEINFO = makeinfo
49 # How to create the HTML file
50 TEXI2HTML = makeinfo --html --number-sections
52 # How to copy the lisp files and elc files to their distination.
53 CP = cp -p
55 # Name of the program to install info files
56 INSTALL_INFO=install-info
58 ##----------------------------------------------------------------------
59 ## BELOW THIS LINE ON YOUR OWN RISK!
60 ##----------------------------------------------------------------------
62 # The following variables need to be defined by the maintainer
63 LISPF = org.el \
64 org-agenda.el \
65 org-attach.el \
66 org-archive.el \
67 org-bbdb.el \
68 org-bibtex.el \
69 org-clock.el \
70 org-colview.el \
71 org-colview-xemacs.el \
72 org-compat.el \
73 org-exp.el \
74 org-export-latex.el \
75 org-docbook.el \
76 org-faces.el \
77 org-feed.el \
78 org-footnote.el \
79 org-gnus.el \
80 org-id.el \
81 org-info.el \
82 org-inlinetask.el \
83 org-jsinfo.el \
84 org-irc.el \
85 org-list.el \
86 org-mac-message.el \
87 org-macs.el \
88 org-mew.el \
89 org-mhe.el \
90 org-mouse.el \
91 org-publish.el \
92 org-plot.el \
93 org-protocol.el \
94 org-remember.el \
95 org-rmail.el \
96 org-table.el \
97 org-timer.el \
98 org-vm.el \
99 org-w3m.el \
100 org-wl.el
102 LISPFILES0 = $(LISPF:%=lisp/%)
103 LISPFILES = $(LISPFILES0) lisp/org-install.el
104 ELCFILES0 = $(LISPFILES0:.el=.elc)
105 ELCFILES = $(LISPFILES:.el=.elc)
106 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir doc/.nosearch
107 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
108 TEXIFILES = doc/org.texi
109 INFOFILES = doc/org
112 .SUFFIXES: .el .elc .texi
113 SHELL = /bin/sh
115 # Additional distribution files
116 DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
117 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
119 default: $(ELCFILES)
121 all: $(ELCFILES) $(INFOFILES)
123 compile: $(ELCFILES0)
125 install: install-lisp
127 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf
130 make pdf && open doc/org.pdf
133 make card && gv doc/orgcard.ps
135 install-lisp: $(LISPFILES) $(ELCFILES)
136 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
137 $(CP) $(LISPFILES) $(lispdir)
138 $(CP) $(ELCFILES) $(lispdir)
140 install-info: $(INFOFILES)
141 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
142 $(CP) $(INFOFILES) $(infodir)
143 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
145 install-info-debian: $(INFOFILES)
146 $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
148 install-noutline: xemacs/noutline.elc
149 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
150 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
152 autoloads: lisp/org-install.el
154 lisp/org-install.el: $(LISPFILES0) Makefile
155 $(BATCH) --eval "(require 'autoload)" \
156 --eval '(find-file "org-install.el")' \
157 --eval '(erase-buffer)' \
158 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
159 --eval '(insert "\n(provide (quote org-install))\n")' \
160 --eval '(save-buffer)'
161 mv org-install.el lisp
163 xemacs/noutline.elc: xemacs/noutline.el
165 doc/org: doc/org.texi
166 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
168 doc/org.pdf: doc/org.texi
169 (cd doc; $(TEXI2PDF) org.texi)
171 doc/org.html: doc/org.texi
172 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
173 UTILITIES/manfull.pl doc/org.html
175 doc/orgcard.dvi: doc/orgcard.tex
176 (cd doc; tex orgcard.tex)
178 doc/orgcard.pdf: doc/orgcard.dvi
179 dvips -q -f -t landscape doc/orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard.pdf -c .setpdfwrite -
181 doc/orgcard.ps: doc/orgcard.dvi
182 dvips -t landscape -o doc/orgcard.ps doc/orgcard.dvi
184 doc/orgcard_letter.dvi: doc/orgcard.tex
185 perl -pe 's/letterpaper=0/letterpaper=1/' doc/orgcard.tex > doc/orgcard_letter.tex
186 (cd doc; tex orgcard_letter.tex)
188 doc/orgcard_letter.pdf: doc/orgcard_letter.dvi
189 dvips -q -f -t landscape doc/orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard_letter.pdf -c .setpdfwrite -
191 doc/orgcard_letter.ps: doc/orgcard_letter.dvi
192 dvips -t landscape -o doc/orgcard_letter.ps doc/orgcard_letter.dvi
194 # Below here are special targets for maintenance only
196 updateweb:
197 ssh cdominik@caprisun.dreamhost.com 'pull-worg-org.sh && publish-worg-org.sh'
199 html: doc/org.html
201 html_manual: doc/org.texi
202 rm -rf doc/manual
203 mkdir doc/manual
204 $(TEXI2HTML) -o doc/manual doc/org.texi
205 UTILITIES/mansplit.pl doc/manual/*.html
207 info: doc/org
209 pdf: doc/org.pdf
211 card: doc/orgcard.pdf doc/orgcard.ps doc/orgcard_letter.pdf doc/orgcard_letter.ps
213 distfile:
214 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
215 touch doc/org.texi doc/orgcard.tex # force update
216 make cleancontrib
217 make info
218 make doc
219 make lisp/org-install.el
220 rm -rf org-$(TAG) org-$(TAG).zip
221 $(MKDIR) org-$(TAG)
222 $(MKDIR) org-$(TAG)/xemacs
223 $(MKDIR) org-$(TAG)/doc
224 $(MKDIR) org-$(TAG)/lisp
225 cp -r $(LISPFILES) org-$(TAG)/lisp
226 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
227 cp -r $(DISTFILES_extra) org-$(TAG)/
228 cp -r README_DIST org-$(TAG)/README
229 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
230 cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
231 zip -r org-$(TAG).zip org-$(TAG)
232 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
234 release:
235 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
236 make distfile
237 make doc
238 UTILITIES/gplmanual.pl
239 make html_manual
240 rm -rf RELEASEDIR
241 $(MKDIR) RELEASEDIR
242 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
243 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
244 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
245 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
247 upload_release:
248 rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
250 upload_manual:
251 rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
253 snap:
254 make release TAG=snapshot
255 scp RELEASEDIR/org-snapshot.zip cdominik@orgmode.org:orgmode.org/
256 scp RELEASEDIR/org-snapshot.tar.gz cdominik@orgmode.org:orgmode.org/
257 make cleanrel
259 relup0:
260 make release
261 make upload_release
263 relup:
264 make release
265 make upload_release
266 make upload_manual
269 grep -e '(debug)' lisp/*el
271 cleancontrib:
272 find contrib -name \*~ -exec rm {} \;
274 cleanelc:
275 rm -f $(ELCFILES)
276 cleandoc:
277 (cd doc; rm -f org.pdf org org.html orgcard.pdf orgcard.ps)
278 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
279 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
280 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
281 (cd doc; rm -rf manual)
283 cleanrel:
284 rm -rf RELEASEDIR
285 rm -rf org-6.*
286 rm -rf org-6*zip org-6*tar.gz org-snapshot*
288 clean:
289 make cleanelc
290 make cleandoc
291 make cleanrel
292 rm -f *~ */*~ */*/*~
294 cleanall:
295 make clean
296 rm -f lisp/org-install.el
298 .el.elc:
299 $(ELC) $<
302 push:
303 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
305 pushtag:
306 git-tag -m "Adding tag" -a $(TAG)
307 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
309 pushreleasetag:
310 git-tag -m "Adding release tag" -a release_$(TAG)
311 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
313 dummy:
314 echo ${prefix}
316 # Dependencies
318 lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
319 lisp/org-agenda.elc: lisp/org.el
320 lisp/org-attach.elc: lisp/org.el lisp/org-id.el
321 lisp/org-archive.elc: lisp/org.el
322 lisp/org-bbdb.elc: lisp/org.el
323 lisp/org-bibtex.elc: lisp/org.el
324 lisp/org-clock.elc: lisp/org.el
325 lisp/org-colview.elc: lisp/org.el
326 lisp/org-colview-xemacs.elc: lisp/org.el
327 lisp/org-compat.elc: lisp/org-macs.el
328 lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
329 lisp/org-export-latex.elc: lisp/org.el lisp/org-exp.el
330 lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
331 lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
332 lisp/org-feed.elc: lisp/org.el
333 lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
334 lisp/org-gnus.elc: lisp/org.el
335 lisp/org-id.elc: lisp/org.el
336 lisp/org-info.elc: lisp/org.el
337 lisp/org-inlinetask.elc:
338 lisp/org-irc.elc: lisp/org.el
339 lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
340 lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
341 lisp/org-mac-message.elc: lisp/org.el
342 lisp/org-macs.elc:
343 lisp/org-mew.elc: lisp/org.el
344 lisp/org-mhe.elc: lisp/org.el
345 lisp/org-mouse.elc: lisp/org.el
346 lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
347 lisp/org-publish.elc:
348 lisp/org-protocol.elc: lisp/org.el
349 lisp/org-remember.elc: lisp/org.el
350 lisp/org-rmail.elc: lisp/org.el
351 lisp/org-table.elc: lisp/org.el
352 lisp/org-timer.elc: lisp/org.el
353 lisp/org-vm.elc: lisp/org.el
354 lisp/org-w3m.elc: lisp/org.el
355 lisp/org-wl.elc: lisp/org.el