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)/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 # Specify the byte-compiler for compiling org-mode files
34 ELC
= $(BATCH
) -f batch-byte-compile
36 # How to make a pdf file from a texinfo file
39 # How to create directories
42 # How to create the info files from the texinfo file
45 # How to create the HTML file
46 TEXI2HTML
= makeinfo --html
--number-sections
--no-split
48 # How to move the byte compiled files to their destination.
51 # How to copy the lisp files to their distination.
54 ##----------------------------------------------------------------------
55 ## BELOW THIS LINE ON YOUR OWN RISK!
56 ##----------------------------------------------------------------------
58 # The following variables need to be defined by the maintainer
59 LISPFILES
= org.el org-publish.el org-mouse.el org-export-latex.el org-install.el
60 ELCFILES
= $(LISPFILES
:.el
=.elc
)
61 DOCFILES
= org.texi org.pdf org
62 CARDFILES
= orgcard.
tex orgcard.pdf orgcard_letter.pdf
65 HTMLDIR
= /home
/dominik
/public_html
/Tools
/org
67 .SUFFIXES
: .el .elc .texi
70 DISTFILES
= README
${LISPFILES} ${DOCFILES} ${CARDFILES} Makefile
dir ChangeLog request-assign.future
71 DISTFILES_xemacs
= xemacs
/noutline.el xemacs
/ps-print-invisible.el xemacs
/README
77 doc
: org.html org.pdf orgcard.pdf
80 make pdf
&& open org.pdf
83 make card
&& gv orgcard.ps
85 install-lisp
: $(LISPFILES
) $(ELCFILES
)
86 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
87 $(CP
) $(LISPFILES
) $(lispdir
)
88 $(CP
) $(ELCFILES
) $(lispdir
)
90 install-info
: $(INFOFILES
)
91 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
92 $(CP
) $(INFOFILES
) $(infodir)
94 install-noutline
: xemacs
/noutline.elc
95 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
96 $(CP
) xemacs
/noutline.el xemacs
/noutline.elc
$(lispdir
)
100 org-publish.elc
: org-publish.el
102 org-install.elc
: org-install.el
104 xemacs
/noutline.elc
: xemacs
/noutline.el
107 $(MAKEINFO
) --no-split org.texi
-o org
113 $(TEXI2HTML
) -o org.html org.texi
115 orgcard.
dvi: orgcard.
tex
118 orgcard.pdf
: orgcard.
dvi
119 dvips
-q
-f
-t landscape orgcard.
dvi | gs
-q
-dNOPAUSE
-dBATCH
-sDEVICE
=pdfwrite
-sOutputFile
=orgcard.pdf
-c .setpdfwrite
-
121 orgcard.ps
: orgcard.
dvi
122 dvips
-t landscape
-o orgcard.ps orgcard.
dvi
124 orgcard_letter.
dvi: orgcard.
tex
125 perl
-pe
's/letterpaper=0/letterpaper=1/' orgcard.
tex > orgcard_letter.
tex
126 tex orgcard_letter.
tex
128 orgcard_letter.pdf
: orgcard_letter.
dvi
129 dvips
-q
-f
-t landscape orgcard_letter.
dvi | gs
-q
-dNOPAUSE
-dBATCH
-sDEVICE
=pdfwrite
-sOutputFile
=orgcard_letter.pdf
-c .setpdfwrite
-
131 orgcard_letter.ps
: orgcard_letter.
dvi
132 dvips
-t landscape
-o orgcard_letter.ps orgcard_letter.
dvi
134 # Below here are special targets for maintenance only
137 $(MAKEINFO
) --no-split org.texi
-o org
141 card
: orgcard.pdf orgcard.ps orgcard_letter.pdf orgcard_letter.ps
144 xemacs
-batch
-q
-f batch-byte-compile
$(LISPFILES
)
147 emacs
-batch
-q
-f batch-byte-compile
$(LISPFILES
)
150 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
151 touch org.texi orgcard.
tex
154 rm -rf org-
$(TAG
) org-
$(TAG
).zip
156 $(MKDIR
) org-
$(TAG
)/xemacs
157 cp
$(DISTFILES
) org-
$(TAG
)/
158 cp
$(DISTFILES_xemacs
) org-
$(TAG
)/xemacs
/
159 zip
-r org-
$(TAG
).zip org-
$(TAG
)
160 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
163 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
168 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz org-release
169 cp org.pdf orgcard.pdf org.texi org.html org-release
170 cp ORGWEBPAGE
/tmp
/*.html org-release
171 cp ORGWEBPAGE
/tmp
/*.el org-release
172 cp ORGWEBPAGE
/tmp
/*.txt org-release
173 cp ORGWEBPAGE
/tmp
/*.css org-release
174 cp ORGWEBPAGE
/tmp
/*.jpg org-release
175 # cp ORGWEBPAGE/tmp/*.tar.gz org-release
176 # cp ORGWEBPAGE/tmp/*.zip org-release
177 cp org-release
/org-
$(TAG
).zip org-release
/org.zip
178 cp org-release
/org-
$(TAG
).
tar.gz org-release
/org.
tar.gz
181 make distfile TAG
=$(TAG
)
182 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz
$(HTMLDIR
)
183 rm -f
$(HTMLDIR
)/org.zip
$(HTMLDIR
)/org.
tar.gz
184 (cd
$(HTMLDIR
); ln
-s org-
$(TAG
).zip org.zip
)
185 (cd
$(HTMLDIR
); ln
-s org-
$(TAG
).
tar.gz org.
tar.gz
)
187 cp org.pdf orgcard.pdf org.texi org.html
$(HTMLDIR
)
191 zip org-
$(TAG
).zip org.el
192 scp org-
$(TAG
).zip remote.science.uva.nl
:public_html
/Tools
/org
/
195 rm -f
$(ELCFILES
) org.pdf org org.html orgcard.pdf orgcard.ps
197 rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
198 rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps