Hierarchical Checkboxes and new org-mac-message.el.
[org-mode.git] / Makefile
blobe74eebd51cedade51432fbd4acaf44ac8da430e8
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)/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) \".\") \
35 (add-to-list (quote load-path) \"$(lispdir)\"))"
38 # Specify the byte-compiler for compiling org-mode files
39 ELC= $(BATCH) -f batch-byte-compile
41 # How to make a pdf file from a texinfo file
42 TEXI2PDF = texi2pdf
44 # How to create directories
45 MKDIR = mkdir -p
47 # How to create the info files from the texinfo file
48 MAKEINFO = makeinfo
50 # How to create the HTML file
51 TEXI2HTML = makeinfo --html --number-sections
53 # How to move the byte compiled files to their destination.
54 MV = mv
56 # How to copy the lisp files to their distination.
57 CP = cp -p
59 ##----------------------------------------------------------------------
60 ## BELOW THIS LINE ON YOUR OWN RISK!
61 ##----------------------------------------------------------------------
63 # The following variables need to be defined by the maintainer
64 LISPFILES0 = org.el org-publish.el org-mouse.el org-export-latex.el \
65 org-mac-message.el
66 LISPFILES = $(LISPFILES0) org-install.el
67 ELCFILES = $(LISPFILES:.el=.elc)
68 DOCFILES = org.texi org.pdf org
69 CARDFILES = orgcard.tex orgcard.pdf orgcard_letter.pdf
70 TEXIFILES = org.texi
71 INFOFILES = org
72 HG_RELEASES = ../org-mode-all-releases-hg/
75 .SUFFIXES: .el .elc .texi
76 SHELL = /bin/sh
78 DISTFILES= README ${LISPFILES} ${DOCFILES} ${CARDFILES} Makefile dir ChangeLog request-assign-future.txt
79 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
81 all: $(ELCFILES)
83 install: install-lisp
85 doc: org.html org.pdf orgcard.pdf
88 make pdf && open org.pdf
91 make card && gv orgcard.ps
93 install-lisp: $(LISPFILES) $(ELCFILES)
94 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
95 $(CP) $(LISPFILES) $(lispdir)
96 $(CP) $(ELCFILES) $(lispdir)
98 install-info: $(INFOFILES)
99 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
100 $(CP) $(INFOFILES) $(infodir)
102 install-noutline: xemacs/noutline.elc
103 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
104 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
106 org-install.el: $(LISPFILES0)
107 $(BATCH) --eval "(require 'autoload)" \
108 --eval '(find-file "org-install.el")' \
109 --eval '(erase-buffer)' \
110 --eval '(generate-file-autoloads "org.el")' \
111 --eval '(generate-file-autoloads "org-mouse.el")' \
112 --eval '(generate-file-autoloads "org-publish.el")' \
113 --eval '(generate-file-autoloads "org-export-latex.el")' \
114 --eval '(insert "\n(provide (quote org-install))\n")' \
115 --eval '(save-buffer)'
117 org.elc: org.el
119 org-publish.elc: org-publish.el
121 org-install.elc: org-install.el
123 xemacs/noutline.elc: xemacs/noutline.el
125 org: org.texi
126 $(MAKEINFO) --no-split org.texi -o org
128 org.pdf: org.texi
129 $(TEXI2PDF) org.texi
131 org.html: org.texi
132 $(TEXI2HTML) --no-split -o org.html org.texi
134 orgcard.dvi: orgcard.tex
135 tex orgcard.tex
137 orgcard.pdf: orgcard.dvi
138 dvips -q -f -t landscape orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard.pdf -c .setpdfwrite -
140 orgcard.ps: orgcard.dvi
141 dvips -t landscape -o orgcard.ps orgcard.dvi
143 orgcard_letter.dvi: orgcard.tex
144 perl -pe 's/letterpaper=0/letterpaper=1/' orgcard.tex > orgcard_letter.tex
145 tex orgcard_letter.tex
147 orgcard_letter.pdf: orgcard_letter.dvi
148 dvips -q -f -t landscape orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard_letter.pdf -c .setpdfwrite -
150 orgcard_letter.ps: orgcard_letter.dvi
151 dvips -t landscape -o orgcard_letter.ps orgcard_letter.dvi
153 # Below here are special targets for maintenance only
155 webfiles:
156 (cd ORGWEBPAGE; emacs -batch -l ~/.emacs index.org -f org-publish-current-project)
158 web:
159 make webfiles
160 (cd ORGWEBPAGE/tmp; lftp -f ../../../org-mode-proprietary/ftp_upload_website)
162 html: org.html
164 html_split: org.texi
165 rm -rf manual
166 mkdir manual
167 $(TEXI2HTML) -o manual org.texi
169 info:
170 $(MAKEINFO) --no-split org.texi -o org
172 pdf: org.pdf
174 card: orgcard.pdf orgcard.ps orgcard_letter.pdf orgcard_letter.ps
176 distfile:
177 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
178 touch org.texi orgcard.tex
179 make info
180 make doc
181 make org-install.el
182 rm -rf org-$(TAG) org-$(TAG).zip
183 $(MKDIR) org-$(TAG)
184 $(MKDIR) org-$(TAG)/xemacs
185 cp $(DISTFILES) org-$(TAG)/
186 cp $(DISTFILES_xemacs) org-$(TAG)/xemacs/
187 zip -r org-$(TAG).zip org-$(TAG)
188 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
190 release:
191 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
192 make webfiles
193 make distfile
194 make doc
195 make html_split
196 rm -rf RELEASEDIR
197 $(MKDIR) RELEASEDIR
198 cp org-$(TAG).zip org-$(TAG).tar.gz RELEASEDIR
199 cp org.pdf orgcard.pdf org.texi org.html RELEASEDIR
200 cp ORGWEBPAGE/tmp/*.html RELEASEDIR
201 cp ORGWEBPAGE/tmp/*.el RELEASEDIR
202 cp ORGWEBPAGE/tmp/*.txt RELEASEDIR
203 cp ORGWEBPAGE/tmp/*.css RELEASEDIR
204 cp ORGWEBPAGE/tmp/*.jpg RELEASEDIR
205 cp RELEASEDIR/org-$(TAG).zip RELEASEDIR/org.zip
206 cp RELEASEDIR/org-$(TAG).tar.gz RELEASEDIR/org.tar.gz
207 (cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)
208 cp -r org-$(TAG)/* $(HG_RELEASES)
209 (cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag $(TAG))
211 trackrelease:
212 (cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)
213 cp -r org-$(TAG)/* $(HG_RELEASES)
214 (cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag $(TAG))
216 upload_release:
217 (cd RELEASEDIR; lftp -f ../../org-mode-proprietary/ftp_upload_release)
219 upload_manual:
220 lftp -f ../org-mode-proprietary/ftp_upload_manual
222 relup:
223 make release
224 make upload_release
225 make upload_manual
227 clean:
228 rm -f $(ELCFILES) org.pdf org org.html orgcard.pdf orgcard.ps
229 rm -f *~
230 rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs
231 rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
232 rm -f orgcard_letter.tex orgcard_letter.pdf
233 rm -f org-install.el
234 rm -rf manual
235 rm -rf RELEASEDIR
237 .el.elc:
238 $(ELC) $<
241 push:
242 git-push git+ssh://repo.or.cz/srv/git/org-mode.git master