Release 4.69
[org-mode/org-mode-NeilSmithlineMods.git] / Makefile
blobc5d595d67d3b85bcbaa6452ad704df61aa82d917
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
32 # Specify the byte-compiler for compiling org-mode files
33 ELC= $(BATCH) -f batch-byte-compile
35 # How to make a pdf file from a texinfo file
36 TEXI2PDF = texi2pdf
38 # How to create directories
39 MKDIR = mkdir -p
41 # How to create the info files from the texinfo file
42 MAKEINFO = makeinfo
44 # How to create the HTML file
45 TEXI2HTML = makeinfo --html --number-sections --no-split
47 # How to move the byte compiled files to their destination.
48 MV = mv
50 # How to copy the lisp files to their distination.
51 CP = cp -p
53 ##----------------------------------------------------------------------
54 ## BELOW THIS LINE ON YOUR OWN RISK!
55 ##----------------------------------------------------------------------
57 # The following variables need to be defined by the maintainer
58 LISPFILES = org.el org-publish.el org-mouse.el org-install.el
59 ELCFILES = $(LISPFILES:.el=.elc)
60 DOCFILES = org.texi org.pdf org orgcard.tex orgcard.pdf
61 TEXIFILES = org.texi
62 INFOFILES = org
63 HTMLDIR = /home/dominik/public_html/Tools/org
65 .SUFFIXES: .el .elc .texi
66 SHELL = /bin/sh
68 DISTFILES= README ${LISPFILES} ${DOCFILES} Makefile
69 DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
71 all: $(ELCFILES)
73 install: install-lisp
75 doc: org.html org.pdf orgcard.pdf
78 make pdf && open org.pdf
81 make card && gv orgcard.ps
83 install-lisp: $(LISPFILES) $(ELCFILES)
84 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
85 $(CP) $(LISPFILES) $(lispdir)
86 $(CP) $(ELCFILES) $(lispdir)
88 install-info: $(INFOFILES)
89 if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
90 $(CP) $(INFOFILES) $(infodir)
92 install-noutline: xemacs/noutline.elc
93 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
94 $(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
96 org.elc: org.el
98 org-publish.elc: org-publish.el
100 org-install.elc: org-install.el
102 xemacs/noutline.elc: xemacs/noutline.el
104 org: org.texi
105 $(MAKEINFO) --no-split org.texi -o org
107 org.pdf: org.texi
108 $(TEXI2PDF) org.texi
110 org.html: org.texi
111 $(TEXI2HTML) -o org.html org.texi
113 orgcard.dvi: orgcard.tex
114 tex orgcard.tex
116 orgcard.pdf: orgcard.dvi
117 dvips -q -f -t landscape orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard.pdf -c .setpdfwrite -
119 orgcard.ps: orgcard.dvi
120 dvips -t landscape -o orgcard.ps orgcard.dvi
122 # Below here are special targets for maintenance only
124 info:
125 $(MAKEINFO) --no-split org.texi -o org
127 pdf: org.pdf
129 card: orgcard.pdf orgcard.ps
131 xcompile:
132 xemacs -batch -q -f batch-byte-compile $(LISPFILES)
134 ecompile:
135 emacs -batch -q -f batch-byte-compile $(LISPFILES)
137 distfile:
138 @if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
139 touch org.texi orgcard.tex
140 make info
141 make doc
142 rm -rf org-$(TAG) org-$(TAG).zip
143 $(MKDIR) org-$(TAG)
144 $(MKDIR) org-$(TAG)/xemacs
145 cp $(DISTFILES) org-$(TAG)/
146 cp $(DISTFILES_xemacs) org-$(TAG)/xemacs/
147 zip -r org-$(TAG).zip org-$(TAG)
148 gtar zcvf org-$(TAG).tar.gz org-$(TAG)
150 dist:
151 make distfile TAG=$(TAG)
152 cp org-$(TAG).zip org-$(TAG).tar.gz $(HTMLDIR)
153 rm -f $(HTMLDIR)/org.zip $(HTMLDIR)/org.tar.gz
154 (cd $(HTMLDIR); ln -s org-$(TAG).zip org.zip)
155 (cd $(HTMLDIR); ln -s org-$(TAG).tar.gz org.tar.gz)
156 make doc
157 cp org.pdf orgcard.pdf org.texi org.html $(HTMLDIR)
159 minidist:
160 rm -f org-$(TAG).zip
161 zip org-$(TAG).zip org.el
162 scp org-$(TAG).zip remote.science.uva.nl:public_html/Tools/org/
164 clean:
165 rm -f $(ELCFILES) org.pdf org org.html orgcard.pdf orgcard.ps
166 rm -f *~
167 rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs
168 rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
170 .el.elc:
171 $(ELC) $<