Empty properties when cloning an entry
[org-mode/org-jambu.git] / Makefile
blobd4739042cc97b145ed6b86ea27d1ae9098d97187
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-capture.el \
70 org-clock.el \
71 org-colview.el \
72 org-colview-xemacs.el \
73 org-compat.el \
74 org-complete.el \
75 org-crypt.el \
76 org-ctags.el \
77 org-datetree.el \
78 org-docview.el \
79 org-entities.el \
80 org-exp.el \
81 org-exp-blocks.el \
82 org-docbook.el \
83 org-faces.el \
84 org-feed.el \
85 org-footnote.el \
86 org-freemind.el \
87 org-gnus.el \
88 org-habit.el \
89 org-html.el \
90 org-icalendar.el \
91 org-id.el \
92 org-indent.el \
93 org-info.el \
94 org-inlinetask.el \
95 org-jsinfo.el \
96 org-irc.el \
97 org-latex.el \
98 org-list.el \
99 org-mac-message.el \
100 org-macs.el \
101 org-mew.el \
102 org-mhe.el \
103 org-mks.el \
104 org-mobile.el \
105 org-mouse.el \
106 org-publish.el \
107 org-plot.el \
108 org-protocol.el \
109 org-remember.el \
110 org-rmail.el \
111 org-src.el \
112 org-table.el \
113 org-taskjuggler.el \
114 org-timer.el \
115 org-vm.el \
116 org-w3m.el \
117 org-wl.el \
118 org-xoxo.el \
119 ob.el \
120 ob-table.el \
121 ob-lob.el \
122 ob-ref.el \
123 ob-exp.el \
124 ob-tangle.el \
125 ob-comint.el \
126 ob-eval.el \
127 ob-keys.el \
128 ob-C.el \
129 ob-calc.el \
130 ob-ditaa.el \
131 ob-haskell.el \
132 ob-perl.el \
133 ob-sh.el \
134 ob-R.el \
135 ob-dot.el \
136 ob-mscgen.el \
137 ob-latex.el \
138 ob-ledger.el \
139 ob-python.el \
140 ob-sql.el \
141 ob-asymptote.el \
142 ob-emacs-lisp.el \
143 ob-matlab.el \
144 ob-ruby.el \
145 ob-sqlite.el \
146 ob-clojure.el \
147 ob-ocaml.el \
148 ob-sass.el \
149 ob-css.el \
150 ob-gnuplot.el \
151 ob-octave.el \
152 ob-screen.el \
153 ob-plantuml.el \
154 ob-org.el \
155 ob-js.el \
156 ob-scheme.el
158 LISPFILES0 = $(LISPF:%=lisp/%)
159 LISPFILES = $(LISPFILES0) lisp/org-install.el
160 ELCFILES0 = $(LISPFILES0:.el=.elc)
161 ELCFILES = $(LISPFILES:.el=.elc)
162 DOCFILES = doc/org.texi doc/org.pdf doc/org doc/dir \
163 doc/pdflayout.sty doc/.nosearch \
164 doc/orgguide.texi doc/orgguide.pdf
165 CARDFILES = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
166 TEXIFILES = doc/org.texi
167 INFOFILES = doc/org
169 # Package Manager (ELPA)
170 PKG_TAG = $(shell date +%Y%m%d)
171 PKG_DOC = "Outline-based notes management and organizer"
172 PKG_REQ = "nil"
174 PKG_FILES = $(LISPFILES0) \
175 doc/dir doc/org \
176 doc/pdflayout.sty \
177 doc/org.pdf \
178 doc/orgguide.pdf \
179 doc/orgcard.tex \
180 doc/orgcard.pdf \
181 doc/orgcard_letter.pdf
183 .SUFFIXES: .el .elc .texi
184 SHELL = /bin/sh
186 # Additional distribution files
187 DISTFILES_extra= Makefile request-assign-future.txt contrib
189 default: $(ELCFILES) $(ELCBFILES)
191 all: $(ELCFILES) $(ELCBFILES) $(INFOFILES)
193 up2: update
194 sudo ${MAKE} install
196 update:
197 git pull
198 ${MAKE} clean
199 ${MAKE} all
201 compile: $(ELCFILES0) $(ELCBFILES)
203 install: install-lisp
205 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgguide.pdf doc/orgcard.txt
208 ${MAKE} pdf && open doc/org.pdf
211 ${MAKE} pdf && open doc/orgguide.pdf
213 install-lisp: $(LISPFILES) $(ELCFILES)
214 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
215 $(CP) $(LISPFILES) $(lispdir)
216 $(CP) $(ELCFILES) $(lispdir)
218 install-info: $(INFOFILES)
219 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
220 $(CP) $(INFOFILES) $(infodir)
221 $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
223 install-info-debian: $(INFOFILES)
224 $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
226 autoloads: lisp/org-install.el
228 lisp/org-install.el: $(LISPFILES0) Makefile
229 $(BATCH) --eval "(require 'autoload)" \
230 --eval '(find-file "org-install.el")' \
231 --eval '(erase-buffer)' \
232 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
233 --eval '(insert "\n(provide (quote org-install))\n")' \
234 --eval '(save-buffer)'
235 mv org-install.el lisp
237 doc/org: doc/org.texi
238 (cd doc; $(MAKEINFO) --no-split org.texi -o org)
240 doc/org.pdf: doc/org.texi
241 (cd doc; $(TEXI2PDF) org.texi)
243 doc/orgguide.pdf: doc/orgguide.texi
244 (cd doc; $(TEXI2PDF) orgguide.texi)
246 doc/org.html: doc/org.texi
247 (cd doc; $(TEXI2HTML) --no-split -o org.html org.texi)
248 UTILITIES/manfull.pl doc/org.html
250 doc/orgcard.pdf: doc/orgcard.tex
251 (cd doc; pdftex orgcard.tex)
253 doc/orgcard.txt: doc/orgcard.tex
254 (cd doc; perl ../UTILITIES/orgcard2txt.pl orgcard.tex > orgcard.txt)
256 doc/orgcard_letter.tex: doc/orgcard.tex
257 perl -pe 's/\\pdflayout=\(0l\)/\\pdflayout=(1l)/' \
258 doc/orgcard.tex > doc/orgcard_letter.tex
260 doc/orgcard_letter.pdf: doc/orgcard_letter.tex
261 (cd doc; pdftex orgcard_letter.tex)
263 # Below here are special targets for maintenance only
265 updateweb:
266 ssh cdominik@orgmode.org 'pull-worg-orgweb.sh && publish-worg-orgweb.sh'
268 html: doc/org.html
270 html_manual: doc/org.texi
271 rm -rf doc/manual
272 mkdir doc/manual
273 $(TEXI2HTML) -o doc/manual doc/org.texi
274 UTILITIES/mansplit.pl doc/manual/*.html
276 html_guide: doc/orgguide.texi
277 rm -rf doc/guide
278 mkdir doc/guide
279 $(TEXI2HTML) -o doc/guide doc/orgguide.texi
280 UTILITIES/guidesplit.pl doc/guide/*.html
282 info: doc/org
284 pdf: doc/org.pdf doc/orgguide.pdf
286 card: doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgcard.txt
288 testrelease:
289 git checkout -b testrelease maint
290 git merge -s recursive -X theirs master
291 UTILITIES/set-version.pl testing
292 git commit -a -m "Release testing"
293 make distfile TAG=testversion
294 make cleanrel
295 rm -rf org-testversion*
296 git reset --hard
297 git checkout master
298 git branch -D testrelease
300 # The following target makes a full release fro the stuff that is
301 # currently on master. Do it like this:
303 # make release TAG=7.01
305 release:
306 git checkout maint
307 git merge -s recursive -X theirs master
308 UTILITIES/set-version.pl $(TAG)
309 git commit -a -m "Release $(TAG)"
310 make relup TAG=$(TAG)
311 make cleanrel
312 rm -rf org-$(TAG)
313 rm -f org-$(TAG)*.zip
314 rm -f org-$(TAG)*.tar.gz
315 make pushreleasetag TAG=$(TAG)
316 git push -f origin maint
317 git checkout master
318 git merge -s ours maint
319 UTILITIES/set-version.pl -o $(TAG)
320 git commit -a -m "Update website to show $(TAG) as current release"
321 git push
322 make updateweb
324 # The following target makes a release, but from the studd that is on
325 # maint, not from the stuff that is on master. The idea is that it pushes
326 # out a minor fix into a minor update, while development on master
327 # already went full steam ahead. To make a micro-relesse, cherry-pick
328 # the necessary changes into maint, then run (with proper version number)
329 # This is just like release, but we skip the step which merges master
330 # into maint.
332 # make fixrelease TAG=7.01.02
334 fixrelease:
335 git checkout maint
336 git merge -s recursive -X theirs master
337 UTILITIES/set-version.pl $(TAG)
338 git commit -a -m "Release $(TAG)"
339 make relup TAG=$(TAG)
340 make cleanrel
341 rm -rf org-$(TAG)
342 rm org-$(TAG)*.zip
343 rm org-$(TAG)*.tar.gz
344 make pushreleasetag TAG=$(TAG)
345 git push -f origin maint
346 git checkout master
347 git merge -s ours maint
348 UTILITIES/set-version.pl -o $(TAG)
349 git commit -a -m "Update website to show $(TAG) as current release"
350 git push
351 make updateweb
353 relup:
354 ${MAKE} makerelease
355 ${MAKE} upload_release
356 ${MAKE} upload_manual
358 distfile:
359 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
360 touch doc/org.texi doc/orgcard.tex # force update
361 ${MAKE} cleancontrib
362 ${MAKE} info
363 ${MAKE} doc
364 ${MAKE} lisp/org-install.el
365 rm -rf org-$(TAG) org-$(TAG).zip
366 $(MKDIR) org-$(TAG)
367 $(MKDIR) org-$(TAG)/doc
368 $(MKDIR) org-$(TAG)/lisp
369 cp -r $(LISPFILES) org-$(TAG)/lisp
370 cp -r $(DOCFILES) $(CARDFILES) org-$(TAG)/doc
371 cp -r $(DISTFILES_extra) org-$(TAG)/
372 cp -r README_DIST org-$(TAG)/README
373 cp -r ORGWEBPAGE/Changes.org org-$(TAG)/
374 zip -r org-$(TAG).zip org-$(TAG)
375 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
377 pkg:
378 @if [ "X$(PKG_TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
379 touch doc/org.texi doc/orgcard.tex # force update
380 ${MAKE} info
381 ${MAKE} doc
382 rm -rf org-$(PKG_TAG) org-$(PKG_TAG).tar
383 $(MKDIR) org-$(PKG_TAG)
384 cp -r $(PKG_FILES) org-$(PKG_TAG)
385 echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" > org-$(PKG_TAG)/org-pkg.el
386 tar cf org-$(PKG_TAG).tar org-$(PKG_TAG) --remove-files
388 makerelease:
389 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
390 ${MAKE} distfile
391 ${MAKE} doc
392 UTILITIES/gplmanual.pl
393 ${MAKE} html_manual
394 ${MAKE} html_guide
395 rm -rf RELEASEDIR
396 $(MKDIR) RELEASEDIR
397 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
398 cp doc/org.pdf doc/orgcard.pdf doc/org.texi doc/org.html RELEASEDIR
399 cp doc/org_dual_license.texi RELEASEDIR
400 cp doc/orgguide.pdf doc/orgcard.txt RELEASEDIR
401 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
402 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
404 upload_release:
405 rsync -avuz RELEASEDIR/ cdominik@orgmode.org:orgmode.org/
407 upload_manual:
408 rsync -avuz --delete doc/manual/ cdominik@orgmode.org:orgmode.org/manual/
409 rsync -avuz --delete doc/guide/ cdominik@orgmode.org:orgmode.org/guide/
411 cleanall:
412 ${MAKE} clean
413 rm -f lisp/org-install.el
415 clean:
416 ${MAKE} cleanelc
417 ${MAKE} cleandoc
418 ${MAKE} cleanrel
419 rm -f *~ */*~ */*/*~
421 cleancontrib:
422 find contrib -name \*~ -exec rm {} \;
424 cleanelc:
425 rm -f $(ELCFILES)
426 cleandoc:
427 (cd doc; rm -f org.pdf org org.html orgcard.pdf)
428 (cd doc; rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs)
429 (cd doc; rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps)
430 (cd doc; rm -f orgcard_letter.tex orgcard_letter.pdf)
431 (cd doc; rm -rf manual)
433 cleanrel:
434 rm -rf RELEASEDIR
435 rm -rf org-7.*
436 rm -rf org-7*zip org-7*tar.gz
438 .el.elc:
439 $(ELC) $<
442 push:
443 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master
445 pushtag:
446 git-tag -m "Adding tag" -a $(TAG)
447 git-push git+ssh://repo.or.cz/srv/git/org-mode.git $(TAG)
449 pushreleasetag:
450 git-tag -m "Adding release tag" -a release_$(TAG)
451 git-push git+ssh://repo.or.cz/srv/git/org-mode.git release_$(TAG)
453 # Dependencies
455 lisp/org.elc: lisp/org-macs.el lisp/org-compat.el lisp/org-faces.el
456 lisp/org-agenda.elc: lisp/org.el
457 lisp/org-ascii.elc: lisp/org-exp.el
458 lisp/org-attach.elc: lisp/org.el lisp/org-id.el
459 lisp/org-archive.elc: lisp/org.el
460 lisp/org-bbdb.elc: lisp/org.el
461 lisp/org-beamer.elc: lisp/org.el
462 lisp/org-bibtex.elc: lisp/org.el
463 lisp/org-capture.elc: lisp/org.el lisp/org-mks.el
464 lisp/org-clock.elc: lisp/org.el
465 lisp/org-colview.elc: lisp/org.el
466 lisp/org-colview-xemacs.elc: lisp/org.el
467 lisp/org-compat.elc: lisp/org-macs.el
468 lisp/org-crypt.elc: lisp/org-crypt.el lisp/org.el
469 lisp/org-ctags.elc: lisp/org.el
470 lisp/org-datetree.elc: lisp/org.el
471 lisp/org-docview.elc: lisp/org.el
472 lisp/org-entities.elc:
473 lisp/org-exp.elc: lisp/org.el lisp/org-agenda.el
474 lisp/org-exp-blocks.elc: lisp/org.el
475 lisp/org-latex.elc: lisp/org.el lisp/org-exp.el lisp/org-beamer.el
476 lisp/org-docbook.elc: lisp/org.el lisp/org-exp.el
477 lisp/org-faces.elc: lisp/org-macs.el lisp/org-compat.el
478 lisp/org-feed.elc: lisp/org.el
479 lisp/org-footnotes.elc: lisp/org-macs.el lisp/org-compat.el
480 lisp/org-freemind.elc: lisp/org.el
481 lisp/org-gnus.elc: lisp/org.el
482 lisp/org-html.elc: lisp/org-exp.el
483 lisp/org-habit.elc: lisp/org.el lisp/org-agenda.el
484 lisp/org-icalendar.elc: lisp/org-exp.el
485 lisp/org-id.elc: lisp/org.el
486 lisp/org-indent.elc: lisp/org.el lisp/org-macs.el lisp/org-compat.el
487 lisp/org-info.elc: lisp/org.el
488 lisp/org-inlinetask.elc:
489 lisp/org-irc.elc: lisp/org.el
490 lisp/org-jsinfo.elc: lisp/org.el lisp/org-exp.el
491 lisp/org-list.elc: lisp/org-macs.el lisp/org-compat.el
492 lisp/org-mac-message.elc: lisp/org.el
493 lisp/org-macs.elc:
494 lisp/org-mew.elc: lisp/org.el
495 lisp/org-mhe.elc: lisp/org.el
496 lisp/org-mks.elc:
497 lisp/org-mobile.elc: lisp/org.el
498 lisp/org-mouse.elc: lisp/org.el
499 lisp/org-plot.elc: lisp/org.el lisp/org-exp.el lisp/org-table.el
500 lisp/org-publish.elc:
501 lisp/org-protocol.elc: lisp/org.el
502 lisp/org-remember.elc: lisp/org.el
503 lisp/org-rmail.elc: lisp/org.el
504 lisp/org-src.elc: lisp/org-macs.el lisp/org-compat.el
505 lisp/org-table.elc: lisp/org.el
506 lisp/org-taskjuggler.elc: lisp/org.el lisp/org-exp.el
507 lisp/org-timer.elc: lisp/org.el
508 lisp/org-vm.elc: lisp/org.el
509 lisp/org-w3m.elc: lisp/org.el
510 lisp/org-wl.elc: lisp/org.el
511 lisp/org-xoxo.elc: lisp/org-exp.el