Persistent filters in Org mode
[org-mode/org-mode-NeilSmithlineMods.git] / Makefile
blob604aeda08688f9a095e346c588978f2a3ace0544
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 "(setq load-path (cons (expand-file-name \"./lisp/\") (cons \"$(lispdir)\" load-path)))"
34 # Specify the byte-compiler for compiling org-mode files
35 ELC= $(BATCH) -f batch-byte-compile
37 # How to make a pdf file from a texinfo file
38 TEXI2PDF = texi2pdf
40 # How to create directories
41 MKDIR = mkdir -p
43 # How to create the info files from the texinfo file
44 MAKEINFO = makeinfo
46 # How to create the HTML file
47 TEXI2HTML = makeinfo --html --number-sections
48 TEXI2HTMLNOPSLIT = makeinfo --html --no-split --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-beamer.el \
68 org-bibtex.el \
69 org-clock.el \
70 org-colview.el \
71 org-colview-xemacs.el \
72 org-compat.el \
73 org-crypt.el \
74 org-ctags.el \
75 org-datetree.el \
76 org-docview.el \
77 org-entities.el \
78 org-exp.el \
79 org-exp-blocks.el \
80 org-docbook.el \
81 org-faces.el \
82 org-feed.el \
83 org-footnote.el \
84 org-freemind.el \
85 org-gnus.el \
86 org-habit.el \
87 org-html.el \
88 org-icalendar.el \
89 org-id.el \
90 org-indent.el \
91 org-info.el \
92 org-inlinetask.el \
93 org-jsinfo.el \
94 org-irc.el \
95 org-latex.el \
96 org-list.el \
97 org-mac-message.el \
98 org-macs.el \
99 org-mew.el \
100 org-mhe.el \
101 org-mobile.el \
102 org-mouse.el \
103 org-publish.el \
104 org-plot.el \
105 org-protocol.el \
106 org-remember.el \
107 org-rmail.el \
108 org-src.el \
109 org-table.el \
110 org-timer.el \
111 org-vm.el \
112 org-w3m.el \
113 org-wl.el \
114 org-xoxo.el
116 LISPFILES0 = $(LISPF:%=lisp/%)
117 LISPFILES = $(LISPFILES0) lisp/org-install.el
118 ELCFILES0 = $(LISPFILES0:.el=.elc)
119 ELCFILES = $(LISPFILES:.el=.elc)
120 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir \
121 doc/pdflayout.sty doc/.nosearch \
122 doc/orgguide.texi doc/orgguide.pdf
123 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
124 TEXIFILES = doc/org.texi
125 INFOFILES = doc/org
128 .SUFFIXES: .el .elc .texi
129 SHELL = /bin/sh
131 # Additional distribution files
132 DISTFILES_extra= Makefile ChangeLog request-assign-future.txt contrib
133 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
135 default: $(ELCFILES)
137 all: $(ELCFILES) $(INFOFILES)
139 up2: update
140 sudo ${MAKE} install
142 update:
143 git pull
144 ${MAKE} clean
145 ${MAKE} all
147 compile: $(ELCFILES0)
149 install: install-lisp
151 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgguide.pdf
154 ${MAKE} pdf && open doc/org.pdf
157 ${MAKE} pdf && open doc/orgguide.pdf
159 install-lisp: $(LISPFILES) $(ELCFILES)
160 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
161 $(CP) $(LISPFILES) $(lispdir)
162 $(CP) $(ELCFILES) $(lispdir)
164 install-info: $(INFOFILES)
165 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
166 $(CP) $(INFOFILES) $(infodir)
167 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
169 install-info-debian: $(INFOFILES)
170 $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
172 install-noutline: xemacs/noutline.elc
173 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
174 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
176 autoloads: lisp/org-install.el
178 lisp/org-install.el: $(LISPFILES0) Makefile
179 $(BATCH) --eval "(require 'autoload)" \
180 --eval '(find-file "org-install.el")' \
181 --eval '(erase-buffer)' \
182 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
183 --eval '(insert "\n(provide (quote org-install))\n")' \
184 --eval '(save-buffer)'
185 mv org-install.el lisp
187 xemacs/noutline.elc: xemacs/noutline.el
189 doc/org: doc/org.texi
190 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
192 doc/org.pdf: doc/org.texi
193 (cd doc; $(TEXI2PDF) org.texi)
195 doc/orgguide.pdf: doc/orgguide.texi
196 (cd doc; $(TEXI2PDF) orgguide.texi)
198 doc/org.html: doc/org.texi
199 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
200 UTILITIES/manfull.pl doc/org.html
202 doc/orgcard.pdf: doc/orgcard.tex
203 (cd doc; pdftex orgcard.tex)
205 doc/orgcard.txt: doc/orgcard.tex
206 (cd doc; perl ../UTILITIES/orgcard2txt.pl orgcard.tex > orgcard.txt)
208 doc/orgcard_letter.tex: doc/orgcard.tex
209 perl -pe 's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
210 doc/orgcard.tex > doc/orgcard_letter.tex
212 doc/orgcard_letter.pdf: doc/orgcard_letter.tex
213 (cd doc; pdftex orgcard_letter.tex)
215 # Below here are special targets for maintenance only
217 updateweb:
218 ssh cdominik@orgmode.org 'pull-worg-org.sh && publish-worg-org.sh'
220 html: doc/org.html
222 html_manual: doc/org.texi
223 rm -rf doc/manual
224 mkdir doc/manual
225 $(TEXI2HTML) -o doc/manual doc/org.texi
226 UTILITIES/mansplit.pl doc/manual/*.html
228 html_guide: doc/orgguide.texi
229 rm -rf doc/guide
230 mkdir doc/guide
231 $(TEXI2HTML) -o doc/guide doc/orgguide.texi
232 UTILITIES/guidesplit.pl doc/guide/*.html
234 info: doc/org
236 pdf: doc/org.pdf doc/orgguide.pdf
238 card: doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgcard.txt
240 distfile:
241 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
242 touch doc/org.texi doc/orgcard.tex # force update
243 ${MAKE} cleancontrib
244 ${MAKE} info
245 ${MAKE} doc
246 ${MAKE} lisp/org-install.el
247 rm -rf org-$(TAG) org-$(TAG).zip
248 $(MKDIR) org-$(TAG)
249 $(MKDIR) org-$(TAG)/xemacs
250 $(MKDIR) org-$(TAG)/doc
251 $(MKDIR) org-$(TAG)/lisp
252 cp -r $(LISPFILES) org-$(TAG)/lisp
253 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
254 cp -r $(DISTFILES_extra) org-$(TAG)/
255 cp -r README_DIST org-$(TAG)/README
256 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
257 cp -r $(DISTFILES_xemacs) org-$(TAG)/xemacs/
258 zip -r org-$(TAG).zip org-$(TAG)
259 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
261 release:
262 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
263 ${MAKE} distfile
264 ${MAKE} doc
265 UTILITIES/gplmanual.pl
266 ${MAKE} html_manual
267 ${MAKE} html_guide
268 rm -rf RELEASEDIR
269 $(MKDIR) RELEASEDIR
270 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
271 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
272 cp doc/orgguide.pdf doc/orgcard.txt RELEASEDIR
273 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
274 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
276 upload_release:
277 rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
279 upload_manual:
280 rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
281 rsync -avuz --delete doc/guide/ cdominik@orgmode.org:orgmode.org/guide/
283 relup0:
284 ${MAKE} release
285 ${MAKE} upload_release
287 relup:
288 ${MAKE} release
289 ${MAKE} upload_release
290 ${MAKE} upload_manual
293 grep -e '(debug)' lisp/*el
295 cleancontrib:
296 find contrib -name \*~ -exec rm {} \;
298 cleanelc:
299 rm -f $(ELCFILES)
300 cleandoc:
301 (cd doc; rm -f org.pdf org org.html orgcard.pdf)
302 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
303 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
304 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
305 (cd doc; rm -rf manual)
307 cleanrel:
308 rm -rf RELEASEDIR
309 rm -rf org-6.*
310 rm -rf org-6*zip org-6*tar.gz
312 clean:
313 ${MAKE} cleanelc
314 ${MAKE} cleandoc
315 ${MAKE} cleanrel
316 rm -f *~ */*~ */*/*~
318 cleanall:
319 ${MAKE} clean
320 rm -f lisp/org-install.el
322 .el.elc:
323 $(ELC) $<
326 push:
327 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
329 pushtag:
330 git-tag -m "Adding tag" -a $(TAG)
331 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
333 pushreleasetag:
334 git-tag -m "Adding release tag" -a release_$(TAG)
335 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
337 dummy:
338 echo ${prefix}
340 # Dependencies
342 lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
343 lisp/org-agenda.elc: lisp/org.el
344 lisp/org-ascii.elc: lisp/org-exp.el
345 lisp/org-attach.elc: lisp/org.el lisp/org-id.el
346 lisp/org-archive.elc: lisp/org.el
347 lisp/org-bbdb.elc: lisp/org.el
348 lisp/org-beamer.elc: lisp/org.el
349 lisp/org-bibtex.elc: lisp/org.el
350 lisp/org-clock.elc: lisp/org.el
351 lisp/org-colview.elc: lisp/org.el
352 lisp/org-colview-xemacs.elc: lisp/org.el
353 lisp/org-compat.elc: lisp/org-macs.el
354 lisp/org-crypt.elc: lisp/org-crypt.el lisp/org.el
355 lisp/org-ctags.elc: lisp/org.el
356 lisp/org-datetree.elc: lisp/org.el
357 lisp/org-docview.elc: lisp/org.el
358 lisp/org-entities.elc:
359 lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
360 lisp/org-exp-blocks.elc: lisp/org.el
361 lisp/org-latex.elc: lisp/org.el lisp/org-exp.el lisp/org-beamer.el
362 lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
363 lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
364 lisp/org-feed.elc: lisp/org.el
365 lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
366 lisp/org-freemind.elc: lisp/org.el
367 lisp/org-gnus.elc: lisp/org.el
368 lisp/org-html.elc: lisp/org-exp.el
369 lisp/org-habit.elc: lisp/org.el lisp/org-agenda.el
370 lisp/org-icalendar.elc: lisp/org-exp.el
371 lisp/org-id.elc: lisp/org.el
372 lisp/org-indent.elc: lisp/org.el lisp/org-macs.el lisp/org-compat.el
373 lisp/org-info.elc: lisp/org.el
374 lisp/org-inlinetask.elc:
375 lisp/org-irc.elc: lisp/org.el
376 lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
377 lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
378 lisp/org-mac-message.elc: lisp/org.el
379 lisp/org-macs.elc:
380 lisp/org-mew.elc: lisp/org.el
381 lisp/org-mhe.elc: lisp/org.el
382 lisp/org-mobile.elc: lisp/org.el
383 lisp/org-mouse.elc: lisp/org.el
384 lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
385 lisp/org-publish.elc:
386 lisp/org-protocol.elc: lisp/org.el
387 lisp/org-remember.elc: lisp/org.el
388 lisp/org-rmail.elc: lisp/org.el
389 lisp/org-src.elc: lisp/org-macs.el lisp/org-compat.el
390 lisp/org-table.elc: lisp/org.el
391 lisp/org-timer.elc: lisp/org.el
392 lisp/org-vm.elc: lisp/org.el
393 lisp/org-w3m.elc: lisp/org.el
394 lisp/org-wl.elc: lisp/org.el
395 lisp/org-xoxo.elc: lisp/org-exp.el