org-babel: remove prompt characters from R output
[rgr-org-mode.git] / Makefile
blob5db32c7d4a3ec4e10eacff246521e848b09465c8
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.
31 BATCH=$(EMACS) -batch -q -no-site-file -eval \
32 "(progn (add-to-list (quote load-path) \"$(lispdir)\") \
33 (add-to-list (quote load-path) (expand-file-name \"./lisp/\")))"
35 # Specify the byte-compiler for compiling org-mode files
36 ELC= $(BATCH) -f batch-byte-compile
38 # How to make a pdf file from a texinfo file
39 TEXI2PDF = texi2pdf
41 # How to create directories
42 MKDIR = mkdir -p
44 # How to create the info files from the texinfo file
45 MAKEINFO = makeinfo
47 # How to create the HTML file
48 TEXI2HTML = makeinfo --html --number-sections
50 # How to copy the lisp files and elc files to their distination.
51 CP = cp -p
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
61 LISPF = org.el \
62 org-agenda.el \
63 org-ascii.el \
64 org-attach.el \
65 org-archive.el \
66 org-bbdb.el \
67 org-bibtex.el \
68 org-clock.el \
69 org-colview.el \
70 org-colview-xemacs.el \
71 org-compat.el \
72 org-crypt.el \
73 org-exp.el \
74 org-exp-blocks.el \
75 org-docbook.el \
76 org-faces.el \
77 org-feed.el \
78 org-footnote.el \
79 org-gnus.el \
80 org-html.el \
81 org-icalendar.el \
82 org-id.el \
83 org-indent.el \
84 org-info.el \
85 org-inlinetask.el \
86 org-jsinfo.el \
87 org-irc.el \
88 org-latex.el \
89 org-list.el \
90 org-mac-message.el \
91 org-macs.el \
92 org-mew.el \
93 org-mhe.el \
94 org-mobile.el \
95 org-mouse.el \
96 org-publish.el \
97 org-plot.el \
98 org-protocol.el \
99 org-remember.el \
100 org-rmail.el \
101 org-src.el \
102 org-table.el \
103 org-timer.el \
104 org-vm.el \
105 org-w3m.el \
106 org-wl.el \
107 org-xoxo.el
109 LISPFILES0 = $(LISPF:%=lisp/%)
110 LISPFILES = $(LISPFILES0) lisp/org-install.el
111 ELCFILES0 = $(LISPFILES0:.el=.elc)
112 ELCFILES = $(LISPFILES:.el=.elc)
113 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir doc/.nosearch
114 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
115 TEXIFILES = doc/org.texi
116 INFOFILES = doc/org
119 .SUFFIXES: .el .elc .texi
120 SHELL = /bin/sh
122 # Additional distribution files
123 DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
124 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
126 default: $(ELCFILES)
128 all: $(ELCFILES) $(INFOFILES)
130 up2: update
131 sudo ${MAKE} install
133 update:
134 git pull
135 ${MAKE} clean
136 ${MAKE} all
138 compile: $(ELCFILES0)
140 install: install-lisp
142 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf
145 ${MAKE} pdf && open doc/org.pdf
148 ${MAKE} card && gv doc/orgcard.ps
150 install-lisp: $(LISPFILES) $(ELCFILES)
151 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
152 $(CP) $(LISPFILES) $(lispdir)
153 $(CP) $(ELCFILES) $(lispdir)
155 install-info: $(INFOFILES)
156 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
157 $(CP) $(INFOFILES) $(infodir)
158 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
160 install-info-debian: $(INFOFILES)
161 $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
163 install-noutline: xemacs/noutline.elc
164 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
165 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
167 autoloads: lisp/org-install.el
169 lisp/org-install.el: $(LISPFILES0) Makefile
170 $(BATCH) --eval "(require 'autoload)" \
171 --eval '(find-file "org-install.el")' \
172 --eval '(erase-buffer)' \
173 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
174 --eval '(insert "\n(provide (quote org-install))\n")' \
175 --eval '(save-buffer)'
176 mv org-install.el lisp
178 xemacs/noutline.elc: xemacs/noutline.el
180 doc/org: doc/org.texi
181 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
183 doc/org.pdf: doc/org.texi
184 (cd doc; $(TEXI2PDF) org.texi)
186 doc/org.html: doc/org.texi
187 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
188 UTILITIES/manfull.pl doc/org.html
190 doc/orgcard.dvi: doc/orgcard.tex
191 (cd doc; tex orgcard.tex)
193 doc/orgcard.pdf: doc/orgcard.dvi
194 dvips -q -f -t landscape doc/orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard.pdf -c .setpdfwrite -
196 doc/orgcard.ps: doc/orgcard.dvi
197 dvips -t landscape -o doc/orgcard.ps doc/orgcard.dvi
199 doc/orgcard_letter.dvi: doc/orgcard.tex
200 perl -pe 's/letterpaper=0/letterpaper=1/' doc/orgcard.tex > doc/orgcard_letter.tex
201 (cd doc; tex orgcard_letter.tex)
203 doc/orgcard_letter.pdf: doc/orgcard_letter.dvi
204 dvips -q -f -t landscape doc/orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=doc/orgcard_letter.pdf -c .setpdfwrite -
206 doc/orgcard_letter.ps: doc/orgcard_letter.dvi
207 dvips -t landscape -o doc/orgcard_letter.ps doc/orgcard_letter.dvi
209 # Below here are special targets for maintenance only
211 updateweb:
212 ssh cdominik@caprisun.dreamhost.com 'pull-worg-org.sh && publish-worg-org.sh'
214 html: doc/org.html
216 html_manual: doc/org.texi
217 rm -rf doc/manual
218 mkdir doc/manual
219 $(TEXI2HTML) -o doc/manual doc/org.texi
220 UTILITIES/mansplit.pl doc/manual/*.html
222 info: doc/org
224 pdf: doc/org.pdf
226 card: doc/orgcard.pdf doc/orgcard.ps doc/orgcard_letter.pdf doc/orgcard_letter.ps
228 distfile:
229 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
230 touch doc/org.texi doc/orgcard.tex # force update
231 ${MAKE} cleancontrib
232 ${MAKE} info
233 ${MAKE} doc
234 ${MAKE} lisp/org-install.el
235 rm -rf org-$(TAG) org-$(TAG).zip
236 $(MKDIR) org-$(TAG)
237 $(MKDIR) org-$(TAG)/xemacs
238 $(MKDIR) org-$(TAG)/doc
239 $(MKDIR) org-$(TAG)/lisp
240 cp -r $(LISPFILES) org-$(TAG)/lisp
241 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
242 cp -r $(DISTFILES_extra) org-$(TAG)/
243 cp -r README_DIST org-$(TAG)/README
244 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
245 cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
246 zip -r org-$(TAG).zip org-$(TAG)
247 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
249 release:
250 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
251 ${MAKE} distfile
252 ${MAKE} doc
253 UTILITIES/gplmanual.pl
254 ${MAKE} html_manual
255 rm -rf RELEASEDIR
256 $(MKDIR) RELEASEDIR
257 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
258 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
259 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
260 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
262 upload_release:
263 rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
265 upload_manual:
266 rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
268 snap:
269 ${MAKE} release TAG=snapshot
270 scp RELEASEDIR/org-snapshot.zip cdominik@orgmode.org:orgmode.org/
271 scp RELEASEDIR/org-snapshot.tar.gz cdominik@orgmode.org:orgmode.org/
272 ${MAKE} cleanrel
274 relup0:
275 ${MAKE} release
276 ${MAKE} upload_release
278 relup:
279 ${MAKE} release
280 ${MAKE} upload_release
281 ${MAKE} upload_manual
284 grep -e '(debug)' lisp/*el
286 cleancontrib:
287 find contrib -name \*~ -exec rm {} \;
289 cleanelc:
290 rm -f $(ELCFILES)
291 cleandoc:
292 (cd doc; rm -f org.pdf org org.html orgcard.pdf orgcard.ps)
293 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
294 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
295 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
296 (cd doc; rm -rf manual)
298 cleanrel:
299 rm -rf RELEASEDIR
300 rm -rf org-6.*
301 rm -rf org-6*zip org-6*tar.gz org-snapshot*
303 clean:
304 ${MAKE} cleanelc
305 ${MAKE} cleandoc
306 ${MAKE} cleanrel
307 rm -f *~ */*~ */*/*~
309 cleanall:
310 ${MAKE} clean
311 rm -f lisp/org-install.el
313 .el.elc:
314 $(ELC) $<
317 push:
318 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
320 pushtag:
321 git-tag -m "Adding tag" -a $(TAG)
322 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
324 pushreleasetag:
325 git-tag -m "Adding release tag" -a release_$(TAG)
326 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
328 dummy:
329 echo ${prefix}
331 # Dependencies
333 lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
334 lisp/org-agenda.elc: lisp/org.el
335 lisp/org-ascii.elc: lisp/org-exp.el
336 lisp/org-attach.elc: lisp/org.el lisp/org-id.el
337 lisp/org-archive.elc: lisp/org.el
338 lisp/org-bbdb.elc: lisp/org.el
339 lisp/org-bibtex.elc: lisp/org.el
340 lisp/org-clock.elc: lisp/org.el
341 lisp/org-colview.elc: lisp/org.el
342 lisp/org-colview-xemacs.elc: lisp/org.el
343 lisp/org-compat.elc: lisp/org-macs.el
344 lisp/org-crypt.elc: lisp/org-crypt.el lisp/org.el
345 lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
346 lisp/org-exp-blocks.elc: lisp/org.el
347 lisp/org-latex.elc: lisp/org.el lisp/org-exp.el
348 lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
349 lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
350 lisp/org-feed.elc: lisp/org.el
351 lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
352 lisp/org-gnus.elc: lisp/org.el
353 lisp/org-html.elc: lisp/org-exp.el
354 lisp/org-icalendar.elc: lisp/org-exp.el
355 lisp/org-id.elc: lisp/org.el
356 lisp/org-indent.elc: lisp/org.el lisp/org-macs.el lisp/org-compat.el
357 lisp/org-info.elc: lisp/org.el
358 lisp/org-inlinetask.elc:
359 lisp/org-irc.elc: lisp/org.el
360 lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
361 lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
362 lisp/org-mac-message.elc: lisp/org.el
363 lisp/org-macs.elc:
364 lisp/org-mew.elc: lisp/org.el
365 lisp/org-mhe.elc: lisp/org.el
366 lisp/org-mobile.elc: lisp/org.el
367 lisp/org-mouse.elc: lisp/org.el
368 lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
369 lisp/org-publish.elc:
370 lisp/org-protocol.elc: lisp/org.el
371 lisp/org-remember.elc: lisp/org.el
372 lisp/org-rmail.elc: lisp/org.el
373 lisp/org-src.elc: lisp/org-macs.el lisp/org-compat.el
374 lisp/org-table.elc: lisp/org.el
375 lisp/org-timer.elc: lisp/org.el
376 lisp/org-vm.elc: lisp/org.el
377 lisp/org-w3m.elc: lisp/org.el
378 lisp/org-wl.elc: lisp/org.el
379 lisp/org-xoxo.elc: lisp/org-exp.el