blob: a6f59d3beac55020d12364a3b987d1993404ee56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
# Makefile - for the org-mode distribution
#
# Maintainer: Carsten Dominik <dominik@science.uva.nl>
# Version: VERSIONTAG
#
# To install org-mode, edit the Makefile, type `make', then `make install'.
# To create the PDF and HTML documentation files, type `make doc'.
##----------------------------------------------------------------------
## YOU MUST EDIT THE FOLLOWING LINES
##----------------------------------------------------------------------
# Name of your emacs binary
EMACS=emacs
# Where local software is found
prefix=/usr/local
# Where local lisp files go.
lispdir = $(prefix)/share/emacs/site-lisp
# Where info files go.
infodir = $(prefix)/info
##----------------------------------------------------------------------
## YOU MAY NEED TO EDIT THESE
##----------------------------------------------------------------------
# Using emacs in batch mode.
# BATCH=$(EMACS) -batch -q
BATCH=$(EMACS) -batch -q -eval "(add-to-list (quote load-path) \".\")"
# Specify the byte-compiler for compiling org-mode files
ELC= $(BATCH) -f batch-byte-compile
# How to make a pdf file from a texinfo file
TEXI2PDF = texi2pdf
# How to create directories
MKDIR = mkdir -p
# How to create the info files from the texinfo file
MAKEINFO = makeinfo
# How to create the HTML file
TEXI2HTML = makeinfo --html --number-sections --no-split
# How to move the byte compiled files to their destination.
MV = mv
# How to copy the lisp files to their distination.
CP = cp -p
##----------------------------------------------------------------------
## BELOW THIS LINE ON YOUR OWN RISK!
##----------------------------------------------------------------------
# The following variables need to be defined by the maintainer
LISPFILES1 = org.el org-publish.el org-mouse.el org-export-latex.el
LISPFILES = $(LISPFILES1) org-install.el
ELCFILES = $(LISPFILES:.el=.elc)
DOCFILES = org.texi org.pdf org
CARDFILES = orgcard.tex orgcard.pdf orgcard_letter.pdf
TEXIFILES = org.texi
INFOFILES = org
HTMLDIR = /home/dominik/public_html/Tools/org
HG_RELEASES = ../org-mode-all-releases-hg/
.SUFFIXES: .el .elc .texi
SHELL = /bin/sh
DISTFILES= README ${LISPFILES} ${DOCFILES} ${CARDFILES} Makefile dir ChangeLog request-assign-future.txt
DISTFILES_xemacs= xemacs/noutline.el xemacs/ps-print-invisible.el xemacs/README
all: $(ELCFILES)
install: install-lisp
doc: org.html org.pdf orgcard.pdf
p:
make pdf && open org.pdf
c:
make card && gv orgcard.ps
install-lisp: $(LISPFILES) $(ELCFILES)
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
$(CP) $(LISPFILES) $(lispdir)
$(CP) $(ELCFILES) $(lispdir)
install-info: $(INFOFILES)
if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
$(CP) $(INFOFILES) $(infodir)
install-noutline: xemacs/noutline.elc
if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
$(CP) xemacs/noutline.el xemacs/noutline.elc $(lispdir)
org-install.el: $(LISPFILES)
$(BATCH) --eval "(require 'autoload)" \
--eval '(find-file "org-install.el")' \
--eval '(erase-buffer)' \
--eval '(generate-file-autoloads "org.el")' \
--eval '(generate-file-autoloads "org-mouse.el")' \
--eval '(generate-file-autoloads "org-publish.el")' \
--eval '(generate-file-autoloads "org-export-latex.el")' \
--eval '(insert "\n(provide (quote org-install))\n")' \
--eval '(save-buffer)'
org.elc: org.el
org-publish.elc: org-publish.el
org-install.elc: org-install.el
xemacs/noutline.elc: xemacs/noutline.el
org: org.texi
$(MAKEINFO) --no-split org.texi -o org
org.pdf: org.texi
$(TEXI2PDF) org.texi
org.html: org.texi
$(TEXI2HTML) -o org.html org.texi
orgcard.dvi: orgcard.tex
tex orgcard.tex
orgcard.pdf: orgcard.dvi
dvips -q -f -t landscape orgcard.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard.pdf -c .setpdfwrite -
orgcard.ps: orgcard.dvi
dvips -t landscape -o orgcard.ps orgcard.dvi
orgcard_letter.dvi: orgcard.tex
perl -pe 's/letterpaper=0/letterpaper=1/' orgcard.tex > orgcard_letter.tex
tex orgcard_letter.tex
orgcard_letter.pdf: orgcard_letter.dvi
dvips -q -f -t landscape orgcard_letter.dvi | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=orgcard_letter.pdf -c .setpdfwrite -
orgcard_letter.ps: orgcard_letter.dvi
dvips -t landscape -o orgcard_letter.ps orgcard_letter.dvi
# Below here are special targets for maintenance only
info:
$(MAKEINFO) --no-split org.texi -o org
pdf: org.pdf
card: orgcard.pdf orgcard.ps orgcard_letter.pdf orgcard_letter.ps
xcompile:
xemacs -batch -q -f batch-byte-compile $(LISPFILES)
ecompile:
emacs -batch -q -f batch-byte-compile $(LISPFILES)
distfile:
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
touch org.texi orgcard.tex
make info
make doc
make org-install.el
rm -rf org-$(TAG) org-$(TAG).zip
$(MKDIR) org-$(TAG)
$(MKDIR) org-$(TAG)/xemacs
cp $(DISTFILES) org-$(TAG)/
cp $(DISTFILES_xemacs) org-$(TAG)/xemacs/
zip -r org-$(TAG).zip org-$(TAG)
gtar zcvf org-$(TAG).tar.gz org-$(TAG)
release:
@if [ "X$(TAG)" = "X" ]; then echo "*** No tag ***"; exit 1; fi
make distfile
make doc
rm -rf org-release
$(MKDIR) org-release
cp org-$(TAG).zip org-$(TAG).tar.gz org-release
cp org.pdf orgcard.pdf org.texi org.html org-release
cp ORGWEBPAGE/tmp/*.html org-release
cp ORGWEBPAGE/tmp/*.el org-release
cp ORGWEBPAGE/tmp/*.txt org-release
cp ORGWEBPAGE/tmp/*.css org-release
cp ORGWEBPAGE/tmp/*.jpg org-release
# cp ORGWEBPAGE/tmp/*.tar.gz org-release
# cp ORGWEBPAGE/tmp/*.zip org-release
cp org-release/org-$(TAG).zip org-release/org.zip
cp org-release/org-$(TAG).tar.gz org-release/org.tar.gz
(cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)
cp -r org-$(TAG)/* $(HG_RELEASES)
(cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag -f $(TAG))
trackrelease:
(cd $(HG_RELEASES); rm -rf $(DISTFILES) xemacs)
cp -r org-$(TAG)/* $(HG_RELEASES)
(cd $(HG_RELEASES); hg addremove; hg ci -m $(TAG); hg tag -f $(TAG))
upload:
(cd org-release; lftp -f ../ftp_script)
relup:
make release
make upload
dist:
make distfile TAG=$(TAG)
cp org-$(TAG).zip org-$(TAG).tar.gz $(HTMLDIR)
rm -f $(HTMLDIR)/org.zip $(HTMLDIR)/org.tar.gz
(cd $(HTMLDIR); ln -s org-$(TAG).zip org.zip)
(cd $(HTMLDIR); ln -s org-$(TAG).tar.gz org.tar.gz)
make doc
cp org.pdf orgcard.pdf org.texi org.html $(HTMLDIR)
minidist:
rm -f org-$(TAG).zip
zip org-$(TAG).zip org.el
scp org-$(TAG).zip remote.science.uva.nl:public_html/Tools/org/
clean:
rm -f $(ELCFILES) org.pdf org org.html orgcard.pdf orgcard.ps
rm -f *~
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs
rm -f *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
.el.elc:
$(ELC) $<
|