1 # Makefile - for the org-mode distribution
3 # Maintainer: Carsten Dominik <dominik@science.uva.nl>
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
16 # Where local software is found
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
43 # How to create directories
46 # How to create the info files from the texinfo file
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.
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
71 org-colview-xemacs.el \
99 LISPFILES0
= $(LISPF
:%=lisp
/%)
100 LISPFILES
= $(LISPFILES0
) lisp
/org-install.el
101 ELCFILES0
= $(LISPFILES0
:.el
=.elc
)
102 ELCFILES
= $(LISPFILES
:.el
=.elc
)
103 DOCFILES
= doc
/org.texi doc
/org.pdf doc
/org doc
/dir doc
/.nosearch
104 CARDFILES
= doc
/orgcard.
tex doc
/orgcard.pdf doc
/orgcard_letter.pdf
105 TEXIFILES
= doc
/org.texi
109 .SUFFIXES
: .el .elc .texi
112 # Additional distribution files
113 DISTFILES_extra
= Makefile ChangeLog request-assign-future.txt contrib
114 DISTFILES_xemacs
= xemacs
/noutline.el xemacs
/ps-print-invisible.el xemacs
/README
118 all: $(ELCFILES
) $(INFOFILES
)
120 compile
: $(ELCFILES0
)
122 install: install-lisp
124 doc
: doc
/org.html doc
/org.pdf doc
/orgcard.pdf doc
/orgcard_letter.pdf
127 make pdf
&& open doc
/org.pdf
130 make card
&& gv doc
/orgcard.ps
132 install-lisp
: $(LISPFILES
) $(ELCFILES
)
133 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
134 $(CP
) $(LISPFILES
) $(lispdir
)
135 $(CP
) $(ELCFILES
) $(lispdir
)
137 install-info
: $(INFOFILES
)
138 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
139 $(CP
) $(INFOFILES
) $(infodir)
140 $(INSTALL_INFO
) --info-file
=$(INFOFILES
) --info-dir
=$(infodir)
142 install-info-debian
: $(INFOFILES
)
143 $(INSTALL_INFO
) --infodir=$(infodir) $(INFOFILES
)
145 install-noutline
: xemacs
/noutline.elc
146 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
147 $(CP
) xemacs
/noutline.el xemacs
/noutline.elc
$(lispdir
)
149 autoloads
: lisp
/org-install.el
151 lisp
/org-install.el
: $(LISPFILES0
) Makefile
152 $(BATCH
) --eval
"(require 'autoload)" \
153 --eval
'(find-file "org-install.el")' \
154 --eval
'(erase-buffer)' \
155 --eval
'(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPFILES0))))' \
156 --eval
'(insert "\n(provide (quote org-install))\n")' \
157 --eval
'(save-buffer)'
158 mv org-install.el lisp
160 xemacs
/noutline.elc
: xemacs
/noutline.el
162 doc
/org
: doc
/org.texi
163 (cd doc
; $(MAKEINFO
) --no-split org.texi
-o org
)
165 doc
/org.pdf
: doc
/org.texi
166 (cd doc
; $(TEXI2PDF
) org.texi
)
168 doc
/org.html
: doc
/org.texi
169 (cd doc
; $(TEXI2HTML
) --no-split
-o org.html org.texi
)
170 UTILITIES
/manfull.pl doc
/org.html
172 doc
/orgcard.
dvi: doc
/orgcard.
tex
173 (cd doc
; tex orgcard.
tex)
175 doc
/orgcard.pdf
: doc
/orgcard.
dvi
176 dvips
-q
-f
-t landscape doc
/orgcard.
dvi | gs
-q
-dNOPAUSE
-dBATCH
-sDEVICE
=pdfwrite
-sOutputFile
=doc
/orgcard.pdf
-c .setpdfwrite
-
178 doc
/orgcard.ps
: doc
/orgcard.
dvi
179 dvips
-t landscape
-o doc
/orgcard.ps doc
/orgcard.
dvi
181 doc
/orgcard_letter.
dvi: doc
/orgcard.
tex
182 perl
-pe
's/letterpaper=0/letterpaper=1/' doc
/orgcard.
tex > doc
/orgcard_letter.
tex
183 (cd doc
; tex orgcard_letter.
tex)
185 doc
/orgcard_letter.pdf
: doc
/orgcard_letter.
dvi
186 dvips
-q
-f
-t landscape doc
/orgcard_letter.
dvi | gs
-q
-dNOPAUSE
-dBATCH
-sDEVICE
=pdfwrite
-sOutputFile
=doc
/orgcard_letter.pdf
-c .setpdfwrite
-
188 doc
/orgcard_letter.ps
: doc
/orgcard_letter.
dvi
189 dvips
-t landscape
-o doc
/orgcard_letter.ps doc
/orgcard_letter.
dvi
191 # Below here are special targets for maintenance only
194 ssh cdominik@caprisun.dreamhost.com
'pull-worg-org.sh && publish-worg-org.sh'
198 html_manual
: doc
/org.texi
201 $(TEXI2HTML
) -o doc
/manual doc
/org.texi
202 UTILITIES
/mansplit.pl doc
/manual
/*.html
208 card
: doc
/orgcard.pdf doc
/orgcard.ps doc
/orgcard_letter.pdf doc
/orgcard_letter.ps
211 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
212 touch doc
/org.texi doc
/orgcard.
tex # force update
216 make lisp
/org-install.el
217 rm -rf org-
$(TAG
) org-
$(TAG
).zip
219 $(MKDIR
) org-
$(TAG
)/xemacs
220 $(MKDIR
) org-
$(TAG
)/doc
221 $(MKDIR
) org-
$(TAG
)/lisp
222 cp
-r
$(LISPFILES
) org-
$(TAG
)/lisp
223 cp
-r
$(DOCFILES
) $(CARDFILES
) org-
$(TAG
)/doc
224 cp
-r
$(DISTFILES_extra
) org-
$(TAG
)/
225 cp
-r README_DIST org-
$(TAG
)/README
226 cp
-r ORGWEBPAGE
/Changes.org org-
$(TAG
)/
227 cp
-r
$(DISTFILES_xemacs
) org-
$(TAG
)/xemacs
/
228 zip
-r org-
$(TAG
).zip org-
$(TAG
)
229 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
232 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
235 UTILITIES
/gplmanual.pl
239 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz RELEASEDIR
240 cp doc
/org.pdf doc
/orgcard.pdf doc
/org.texi doc
/org.html RELEASEDIR
241 cp RELEASEDIR
/org-
$(TAG
).zip RELEASEDIR
/org.zip
242 cp RELEASEDIR
/org-
$(TAG
).
tar.gz RELEASEDIR
/org.
tar.gz
245 rsync
-avuz RELEASEDIR
/ cdominik@orgmode.org
:orgmode.org
/
248 rsync
-avuz
--delete doc
/manual
/ cdominik@orgmode.org
:orgmode.org
/manual
/
251 make release TAG
=snapshot
252 scp RELEASEDIR
/org-snapshot.zip cdominik@orgmode.org
:orgmode.org
/
253 scp RELEASEDIR
/org-snapshot.
tar.gz cdominik@orgmode.org
:orgmode.org
/
266 grep
-e
'(debug)' lisp
/*el
269 find contrib
-name \
*~
-exec
rm {} \
;
274 (cd doc
; rm -f org.pdf org org.html orgcard.pdf orgcard.ps
)
275 (cd doc
; rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
)
276 (cd doc
; rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps
)
277 (cd doc
; rm -f orgcard_letter.
tex orgcard_letter.pdf
)
278 (cd doc
; rm -rf manual
)
283 rm -rf org-6
*zip org-6
*tar.gz org-snapshot
*
293 rm -f lisp
/org-install.el
300 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git master
303 git-tag
-m
"Adding tag" -a
$(TAG
)
304 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git
$(TAG
)
307 git-tag
-m
"Adding release tag" -a release_
$(TAG
)
308 git-push git
+ssh
://repo.or.cz
/srv
/git
/org-mode.git release_
$(TAG
)
315 lisp
/org.elc
: lisp
/org-macs.el lisp
/org-compat.el lisp
/org-faces.el
316 lisp
/org-agenda.elc
: lisp
/org.el
317 lisp
/org-attach.elc
: lisp
/org.el lisp
/org-id.el
318 lisp
/org-archive.elc
: lisp
/org.el
319 lisp
/org-bbdb.elc
: lisp
/org.el
320 lisp
/org-bibtex.elc
: lisp
/org.el
321 lisp
/org-clock.elc
: lisp
/org.el
322 lisp
/org-colview.elc
: lisp
/org.el
323 lisp
/org-colview-xemacs.elc
: lisp
/org.el
324 lisp
/org-compat.elc
: lisp
/org-macs.el
325 lisp
/org-exp.elc
: lisp
/org.el lisp
/org-agenda.el
326 lisp
/org-export-latex.elc
: lisp
/org.el lisp
/org-exp.el
327 lisp
/org-docbook.elc
: lisp
/org.el lisp
/org-exp.el
328 lisp
/org-faces.elc
: lisp
/org-macs.el lisp
/org-compat.el
329 lisp
/org-footnotes.elc
: lisp
/org-macs.el lisp
/org-compat.el
330 lisp
/org-gnus.elc
: lisp
/org.el
331 lisp
/org-id.elc
: lisp
/org.el
332 lisp
/org-info.elc
: lisp
/org.el
333 lisp
/org-irc.elc
: lisp
/org.el
334 lisp
/org-jsinfo.elc
: lisp
/org.el lisp
/org-exp.el
335 lisp
/org-list.elc
: lisp
/org-macs.el lisp
/org-compat.el
336 lisp
/org-mac-message.elc
: lisp
/org.el
338 lisp
/org-mew.elc
: lisp
/org.el
339 lisp
/org-mhe.elc
: lisp
/org.el
340 lisp
/org-mouse.elc
: lisp
/org.el
341 lisp
/org-plot.elc
: lisp
/org.el lisp
/org-exp.el lisp
/org-table.el
342 lisp
/org-publish.elc
:
343 lisp
/org-remember.elc
: lisp
/org.el
344 lisp
/org-rmail.elc
: lisp
/org.el
345 lisp
/org-table.elc
: lisp
/org.el
346 lisp
/org-timer.elc
: lisp
/org.el
347 lisp
/org-vm.elc
: lisp
/org.el
348 lisp
/org-w3m.elc
: lisp
/org.el
349 lisp
/org-wl.elc
: lisp
/org.el