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
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
38 # How to create directories
41 # How to create the info files from the texinfo file
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.
50 # How to copy the lisp files to their distination.
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
63 HTMLDIR
= /home
/dominik
/public_html
/Tools
/org
65 .SUFFIXES
: .el .elc .texi
68 DISTFILES
= README
${LISPFILES} ${DOCFILES} Makefile
69 DISTFILES_xemacs
= xemacs
/noutline.el xemacs
/ps-print-invisible.el xemacs
/README
75 doc
: org.html org.pdf orgcard.pdf
77 install-lisp
: $(LISPFILES
) $(ELCFILES
)
78 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
79 $(CP
) $(LISPFILES
) $(lispdir
)
80 $(CP
) $(ELCFILES
) $(lispdir
)
82 install-info
: $(INFOFILES
)
83 if
[ ! -d
$(infodir) ]; then
$(MKDIR
) $(infodir); else true
; fi
;
84 $(CP
) $(INFOFILES
) $(infodir)
86 install-noutline
: xemacs
/noutline.elc
87 if
[ ! -d
$(lispdir
) ]; then
$(MKDIR
) $(lispdir
); else true
; fi
;
88 $(CP
) xemacs
/noutline.el xemacs
/noutline.elc
$(lispdir
)
92 org-publish.elc
: org-publish.el
94 org-install.elc
: org-install.el
96 xemacs
/noutline.elc
: xemacs
/noutline.el
99 $(MAKEINFO
) --no-split org.texi
-o org
105 $(TEXI2HTML
) -o org.html org.texi
107 orgcard.
dvi: orgcard.
tex
110 orgcard.pdf
: orgcard.
dvi
111 dvips
-q
-f
-t landscape orgcard.
dvi | gs
-q
-dNOPAUSE
-dBATCH
-sDEVICE
=pdfwrite
-sOutputFile
=orgcard.pdf
-c .setpdfwrite
-
113 orgcard.ps
: orgcard.
dvi
114 dvips
-t landscape
-o orgcard.ps orgcard.
dvi
116 # Below here are special targets for maintenance only
119 $(MAKEINFO
) --no-split org.texi
-o org
123 card
: orgcard.pdf orgcard.ps
126 xemacs
-batch
-q
-f batch-byte-compile
$(LISPFILES
)
129 emacs
-batch
-q
-f batch-byte-compile
$(LISPFILES
)
132 @if
[ "X$(TAG)" = "X" ]; then echo
"*** No tag ***"; exit
1; fi
133 touch org.texi orgcard.
tex
136 rm -rf org-
$(TAG
) org-
$(TAG
).zip
138 $(MKDIR
) org-
$(TAG
)/xemacs
139 cp
$(DISTFILES
) org-
$(TAG
)/
140 cp
$(DISTFILES_xemacs
) org-
$(TAG
)/xemacs
/
141 zip
-r org-
$(TAG
).zip org-
$(TAG
)
142 gtar zcvf org-
$(TAG
).
tar.gz org-
$(TAG
)
145 make distfile TAG
=$(TAG
)
146 cp org-
$(TAG
).zip org-
$(TAG
).
tar.gz
$(HTMLDIR
)
147 rm -f
$(HTMLDIR
)/org.zip
$(HTMLDIR
)/org.
tar.gz
148 (cd
$(HTMLDIR
); ln
-s org-
$(TAG
).zip org.zip
)
149 (cd
$(HTMLDIR
); ln
-s org-
$(TAG
).
tar.gz org.
tar.gz
)
151 cp org.pdf orgcard.pdf org.texi org.html
$(HTMLDIR
)
155 zip org-
$(TAG
).zip org.el
156 scp org-
$(TAG
).zip remote.science.uva.nl
:public_html
/Tools
/org
/
159 rm -f
$(ELCFILES
) org.pdf org org.html orgcard.pdf orgcard.ps
161 rm -f
*.aux
*.cp
*.cps
*.
dvi *.fn
*.fns
*.ky
*.kys
*.pg
*.pgs
162 rm -f
*.toc
*.tp
*.tps
*.vr
*.vrs
*.log
*.html
*.ps