-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
485 lines (420 loc) · 16.9 KB
/
Makefile.am
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
# Process this with automake to create Makefile.in
include $(top_srcdir)/source-list
CLASSPATH = .$(CLASSPATH_SEPARATOR)$(srcdir)$(CLASSPATH_SEPARATOR)@conf_classpath@$$CLASSPATH
FIXED_SUBDIRS = doc testsuite gnu/bytecode \
gnu \
kawa/lib gnu/kawa/slib gnu/kawa/servlet \
gnu/commonlisp/lisp gnu/commonlisp/testsuite \
gnu/q2/testsuite
ANDROID_SUBDIRS = gnu/kawa/android
BRL_SUBDIRS = gnu/brl gnu/kawa/brl
JAVAFX_SUBDIRS = gnu/kawa/javafx
JEMACS_SUBDIRS = gnu/jemacs/lisp gnu/jemacs/testsuite
XQUERY_SUBDIRS = gnu/xquery/testsuite
SUBDIRS = $(FIXED_SUBDIRS)
if ENABLE_JEMACS
SUBDIRS += $(JEMACS_SUBDIRS)
endif
if ENABLE_XML
if ENABLE_BRL
SUBDIRS += $(BRL_SUBDIRS)
endif
if ENABLE_XQUERY
SUBDIRS += $(XQUERY_SUBDIRS)
endif
endif
if WITH_ANDROID
SUBDIRS += $(ANDROID_SUBDIRS)
endif
if WITH_JAVAFX
SUBDIRS += $(JAVAFX_SUBDIRS)
endif
if ENABLE_KAWA_FRONTEND
SUBDIRS += bin
endif
DIST_SUBDIRS = $(FIXED_SUBDIRS) \
$(ANDROID_SUBDIRS) \
$(BRL_SUBDIRS) \
$(JAVAFX_SUBDIRS) \
$(JEMACS_SUBDIRS) \
$(XQUERY_SUBDIRS)
javadir=$(datadir)/java
SED = sed
CHMOD = chmod
JAR = jar
FIND = @FIND@
KAWAJAR = kawa.jar
KAWALIB = $(datadir)/kawa/lib/$(KAWAJAR)
META_ScriptEngineFactory = META-INF/services/javax.script.ScriptEngineFactory
if WITH_JAVAX_SCRIPT
META_INF_FILES = $(META_ScriptEngineFactory)
endif
misc-classes.stamp: $(java_sources)
if test -f misc-classes.stamp; then \
$(JAVAC) -d $(top_builddir) -classpath "$(CLASSPATH)" $(JAVACFLAGS) $?; \
else \
$(MAKE) javac-all; \
fi
echo timestamp > misc-classes.stamp
javac-all: tmp-sources1.list
$(JAVAC) -d $(top_builddir) -classpath "$(CLASSPATH)" $(JAVACFLAGS) @tmp-sources1.list
kawa-jar.stamp: misc-classes.stamp kawa/Version.class
echo timestamp > kawa-jar.stamp
classes.list: ./kawa-jar.stamp
$(FIND) gnu kawa -name '*.class' -print >classes.list
tmp-sources1.list: source-list Makefile.am
(for f in $(sources_gnu_core); do echo $(srcdir)/$$f; done) >tmp-list
(for f in $(sources_gnu_misc); do echo $(srcdir)/$$f; done) >>tmp-list
(for f in $(sources_gnu_selected); do echo $(srcdir)/$$f; done) >>tmp-list
(for f in $(sources_kawa_core); do echo $(srcdir)/$$f; done) >>tmp-list
(for f in $(sources_kawa_selected); do echo $(srcdir)/$$f; done) >>tmp-list
mv tmp-list $@
classes-rt.list: ./kawa-jar.stamp $(srcdir)/classes-to-skip-for-runtime
$(FIND) gnu kawa -name '*.class' -print | grep -v -f $(srcdir)/classes-to-skip-for-runtime >classes-rt.list
lib/kawa.jar: ./kawa-jar.stamp $(META_INF_FILES) classes.list
mkdir -p lib
$(JAR) cmf $(srcdir)/jar-manifest $@ $(META_INF_FILES) @classes.list
lib/kawart.jar: ./kawa-jar.stamp classes-rt.list
mkdir -p lib
$(JAR) cf $@ @classes-rt.list
$(META_ScriptEngineFactory): Makefile
echo 'kawa.standard.SchemeScriptEngineFactory #Scheme' >tmp.ScriptEngineFactory
if ENABLE_XQUERY
echo 'gnu.xquery.lang.XQueryScriptEngineFactory #XQuery' >>tmp.ScriptEngineFactory
endif
mkdir -p META-INF/services
mv tmp.ScriptEngineFactory $(META_ScriptEngineFactory)
kawa-doc.tar.gz: kawa-doc-$(VERSION).tar.gz
kawa-doc-$(VERSION).tar.gz: doc/kawa.texi
cd doc; $(MAKE) ../kawa-doc-$(VERSION).tar.gz
JLINE_VERSION_MAJOR=3
dist-kawa.jar: dist
srcdir=`(cd $(srcdir); /bin/pwd)` \
&& rm -rf tmpdir \
&& mkdir -p tmpdir tmpdir/lib \
&& cd tmpdir \
&& tar xzf ../$(distdir).tar.gz \
&& rm -f ./patch-source-list \
&& ./kawa-$(VERSION)/configure --with-java-source=7 \
--with-domterm="@WITH_DOMTERM_ARG@" \
--with-jline$(JLINE_VERSION_MAJOR)="@WITH_JLINE_PATH@" \
--with-servlet=@WITH_SERVLET_ARG@ --with-javafx=@WITH_JAVAFX_ARG@ \
&& CLASSPATH=@conf_classpath@.$(CLASSPATH_SEPARATOR)$$CLASSPATH $(MAKE) all JAVAC="$(JAVAC) -source 7 -target 7" \
&& mv lib/kawa.jar ../dist-kawa.jar \
&& cd .. && rm -rf tmpdir
ZIP_VERSION = $(VERSION)
kawa.zip: kawa-$(ZIP_VERSION).zip
kawa-snapshot.zip:
$(MAKE) kawa.zip ZIP_VERSION=$(VERSION)-`date +%Y%m%d`
kawa-$(ZIP_VERSION).zip: dist-kawa.jar doc/kawa-manual.epub bin/kawa.bat
mkdir -p kawa-$(VERSION) kawa-$(VERSION)/lib kawa-$(VERSION)/bin kawa-$(VERSION)/doc
cd kawa-$(VERSION)/lib; \
$(LN_S) ../../dist-kawa.jar kawa.jar; \
$(LN_S) @WITH_DOMTERM_ARG@ domterm.jar; \
$(LN_S) @WITH_SERVLET_ARG@ servlet.jar; \
$(LN_S) @WITH_SERVLET_ARG@ servlet.jar; \
$(LN_S) @WITH_JLINE_PATH@ jline.jar
docsrcdir="`cd $(srcdir); pwd`/doc"; \
cd kawa-$(VERSION)/doc; \
$(LN_S) ../../doc/kawa-manual.epub kawa-manual.epub; \
$(LN_S) $$docsrcdir/README-epub README-epub; \
$(LN_S) $$docsrcdir/+default+ +default+
cd kawa-$(VERSION)/bin; \
$(LN_S) ../../bin/kawa.sh kawa; \
$(LN_S) ../../bin/kawa.bat kawa.bat
zip $@ kawa-$(VERSION)/bin/kawa -r kawa-$(VERSION)
upload-kawa.snapshot.zip:
gnupload --replace --to ftp.gnu.org:kawa --symlink-regex kawa-$(VERSION)-`date +%Y%m%d`.zip
doc/kawa-manual.epub: doc/kawa.texi
cd doc && $(MAKE) kawa-manual.epub
lib/jemacs.jar:
srcdir=`(cd $(srcdir); /bin/pwd)` \
&& rm -rf tmpdir \
&& mkdir tmpdir \
&& cd tmpdir \
&& $$srcdir/configure --with-swing \
&& $(MAKE) \
&& $(JAR) cmf $$srcdir/gnu/jemacs/jar-manifest \
../lib/jemacs.jar \
`$(FIND) . -name '*.class' -print` \
&& cd .. && rm -rf tmpdir
lib/bytecode.jar: ./gnu/bytecode/java-classes.stamp
$(JAR) cmf $(srcdir)/gnu/bytecode/jar-manifest \
lib/bytecode.jar \
`$(FIND) gnu/bytecode -name '*.class' -print`
kawa-@[email protected]: kawa-@[email protected]
mkdir zip-temp
cd zip-temp ;\
tar xzf ../kawa-@[email protected]; \
zip -q -r ../kawa-@[email protected] kawa-@VERSION@
rm -rf zip-temp
kawa-compiled.zip: kawa-@[email protected]
kawa.jar: lib/kawa.jar
kawa-src.zip: kawa-@[email protected]
jemacs.jar: lib/jemacs.jar
bytecode.jar: lib/bytecode.jar
EXTRA_DIST = debian/control debian/rules debian/changelog debian/dirs \
config.guess config.sub install-sh ./mkinstalldirs \
patch-source-list selected-java-source \
build.xml build.properties \
$(MISC_EXTRA_DIST) \
gnu/jemacs/jar-manifest gnu/jemacs/status.html \
kawa/Version.java jar-manifest Make-rules classes-to-skip-for-runtime \
bin/configure.ac bin/configure bin/Makefile.am bin/Makefile.in \
bin/ChangeLog bin/kawa.bat.in bin/kawa.c bin/kawapath.c bin/cgi-servlet.c \
bin/kawa.sh.in bin/qexo.in
MOSTLYCLEANFILES = tmp* *.o bin/*.o *.stamp */*.class */*/*.class */*/*/*.class classes.list classes-rt.list
CLEANFILES = *.jar lib/*.jar *.zip bin/kawa bin/qexo kawa/Version.java $(META_ScriptEngineFactory)
DISTCLEANFILES = selected-java-source bin/kawa.sh bin/kawa.bat
MAINTAINERCLEANFILES = \
$(GENERATED_SIMPLEVECTOR_FILES) $(srcdir)/patch-source-list
HTML_HOME = $$HOME/public_html
JAVADOC_DIR = $$HOME/Kawa/api
JAVADOC_PACKAGES = \
gnu.bytecode gnu.ecmascript gnu.expr gnu.mapping gnu.math gnu.text gnu.lists\
gnu.xml gnu.kawa.reflect gnu.kawa.util gnu.kawa.lispexpr gnu.kawa.functions \
gnu.kawa.servlet gnu.kawa.ant kawa kawa.lang kawa.standard kawa.lib \
gnu.kawa.xml gnu.xquery.lang gnu.xquery.util gnu.brl gnu.kawa.brl \
gnu.kawa.xslt gnu.kawa.sax gnu.commonlisp.lang gnu.q2.lang \
gnu.kawa.models gnu.kawa.swingviews gnu.kawa.swtviews gnu.kawa.echo2 \
gnu.jemacs.lang gnu.jemacs.buffer gnu.jemacs.swing gnu.jemacs.swt \
gnu.kawa.android gnu.kawa.javafx
JAVADOC = javadoc
JAVADOC_FLAGS = -use
#JAVADOC_FLAGS = -J-Xmx60m
# NOTE: To update javadoc:
# make install-javadoc-html
# When satisfied:
# make javadoc-cvs.log
# When satisfied:
# cd ~/Kawa/api && cvs ci -m 'Re-run javadoc.'
javadoc-cvs.log:
cd $(JAVADOC_DIR) \
&& $(FIND) . -name CVS -prune -o -type f -exec echo rm '{}' ';'
$(MAKE) install-javadoc-html >&LOG.JAVADOC
(cd $(JAVADOC_DIR) && cvs -n update -d .>&/tmp/cvs-changes \
&& (grep '^[?] ' /tmp/cvs-changes |sed -e 's|[?] ||') >/tmp/cvs-adds \
&& (test '!' -s /tmp/cvs-adds || cvs add `cat /tmp/cvs-adds`) \
&& (grep '^[U] ' /tmp/cvs-changes |sed -e 's|[U] ||') >/tmp/cvs-rems\
&& (test '!' -s /tmp/cvs-rems || cvs remove `cat /tmp/cvs-rems`) \
&& cvs update -d .) >cvs-update.log
echo ExamineCheck ./cvs-update.log
echo then: "(cd $(JAVADOC_DIR) && cvs ci -m 'Re-run javadoc.')".
ECLIPSE_PLUGINS_PATH = /opt/eclipse/plugins
JAVADOC_ANT_JARS = $(ECLIPSE_PLUGINS_PATH)/org.apache.ant_1.6.5/lib/ant.jar
JAVADOC_ECLIPSE_JARS = $(ECLIPSE_PLUGINS_PATH)/org.eclipse.jface_3.1.0.jar:$(ECLIPSE_PLUGINS_PATH)/org.eclipse.swt.gtk.linux.x86_3.1.0.jar
JAVADOC_EXTRA_PATH = $(JAVADOC_ECLIPSE_JARS):$(JAVADOC_ANT_JARS)
install-javadoc-html:
-mkdir $(JAVADOC_DIR)
-#rm `$(FIND) $(JAVADOC_DIR)/ -name CVS -prune -o '(' '!' -type d ')' -print`
-rm `$(FIND) $(JAVADOC_DIR)/ -name '*.html'`
CLASSPATH=$(JAVADOC_EXTRA_PATH)$(CLASSPATH_SEPARATOR)@conf_classpath@$$CLASSPATH \
$(JAVADOC) $(JAVADOC_FLAGS) -sourcepath .:$(top_srcdir) -d $(JAVADOC_DIR) $(JAVADOC_PACKAGES)
cp $(srcdir)/COPYING $(JAVADOC_DIR)/COPYING
install-html: install-javadoc-html
cd doc; make install-html HTML_HOME="$(HTML_HOME)"
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
$(INSTALL_SCRIPT) bin/qexo $(DESTDIR)$(bindir)/qexo
if ! ENABLE_KAWA_FRONTEND
cd $(DESTDIR)$(bindir) && \
$(LN_S) $(datadir)/kawa/bin/kawa kawa
endif
install-data-am: install-jar
$(mkinstalldirs) $(DESTDIR)$(datadir)/kawa \
$(DESTDIR)$(datadir)/kawa/bin $(DESTDIR)$(datadir)/kawa/lib
$(INSTALL_SCRIPT) bin/kawa.sh $(DESTDIR)$(datadir)/kawa/bin/kawa
install-jar:
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(datadir)/kawa \
$(DESTDIR)$(datadir)/kawa/bin $(DESTDIR)$(datadir)/kawa/lib
$(INSTALL_DATA) lib/kawa.jar \
$(DESTDIR)$(datadir)/kawa/lib/$(KAWAJAR)
if WITH_DOMTERM
cd $(DESTDIR)$(datadir)/kawa/lib && \
$(LN_S) @WITH_DOMTERM_ARG@ domterm.jar
endif
if ENABLE_SERVLET
cd $(DESTDIR)$(datadir)/kawa/lib && \
$(LN_S) @WITH_SERVLET_ARG@ servlet.jar
endif
if WITH_JLINE3
cd $(DESTDIR)$(datadir)/kawa/lib && \
$(LN_S) @WITH_JLINE_PATH@ jline.jar
endif
install-bytecode-jar: lib/bytecode.jar
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(javadir)
$(INSTALL_DATA) lib/bytecode.jar \
$(DESTDIR)$(javadir)/bytecode.jar
uninstall-local: uninstall-jar uninstall-exec-bindir uninstall-data
uninstall-jar:
rm -f $(DESTDIR)$(datadir)/kawa/lib/$(KAWAJAR) \
$(DESTDIR)$(datadir)/kawa/lib/kawa.jar
uninstall-data:
rm -f $(DESTDIR)$(datadir)/kawa/bin/kawa
uninstall-exec-bindir:
rm -f $(DESTDIR)$(bindir)/kawa $(DESTDIR)$(bindir)/qexo
uninstall-bytecode-jar:
rm -f $(DESTDIR)$(javadir)/bytecode.jar \
$(DESTDIR)$(javadir)/bytecode.jar
kawa/Version.java: $(srcdir)/kawa/Version.java.in $(srcdir)/configure.ac
test -f $(srcdir)/.svn/wc.db \
&& SVN_REVISION=`cd $(srcdir) && svnversion 2>/dev/null` \
&& test -n "$$SVN_REVISION" \
&& SVN_REVISION=" (revision $${SVN_REVISION})"; \
sed -e 's|VERSION|@VERSION@'"$$SVN_REVISION|" <$(srcdir)/kawa/Version.java.in >$@
all-recursive: kawa/Version.java selected-java-source $(GENERATED_SIMPLEVECTOR_FILES)
all: lib/kawa.jar lib/kawart.jar $(JLINE_LINK) $(DOMTERM_LINK) $(SERVLET_LINK)
if WITH_JLINE3
JLINE_LINK = lib/jline.jar
lib/jline.jar:
mkdir -p lib
$(LN_S) @WITH_JLINE_PATH@ lib/jline.jar
endif
if WITH_DOMTERM
DOMTERM_LINK = lib/domterm.jar
lib/domterm.jar:
mkdir -p lib
$(LN_S) @WITH_DOMTERM_ARG@ lib/domterm.jar
endif
if ENABLE_SERVLET
SERVLET_LINK = lib/servlet.jar
lib/servlet.jar:
mkdir -p lib
$(LN_S) @WITH_SERVLET_ARG@ lib/servlet.jar
endif
JAVA_SOURCE = @JAVA_SOURCE@
if WITH_HTTPSERVER
PREPROCESS_HTTPSERVER = +use:com.sun.net.httpserver
else
PREPROCESS_HTTPSERVER = -use:com.sun.net.httpserver
endif
if WITH_JLINE3
PREPROCESS_JLINE3 = +with:jline3
else
PREPROCESS_JLINE3 = -with:jline3
endif
if ENABLE_XML
PREPROCESS_XML = +enable:XML
else
PREPROCESS_XML = -enable:XML
endif
if WITH_AWT
PREPROCESS_AWT = +use:java.awt
else
PREPROCESS_AWT = -use:java.awt
endif
$(srcdir)/patch-source-list: $(top_srcdir)/configure
(cd $(srcdir); \
$(FIND) . -name '*.java' -exec grep -lE ' #endif ' '{}' ';') \
| sed -e 's|./||' | sort > $@
kawa/Version.class: kawa/Version.java
$(JAVAC) -d . $^
gnu/kawa/util/PreProcess.class: gnu/kawa/util/PreProcess.java
$(JAVAC) -d . $^
JAVA_PREPROCESS_OPTIONS = @JAVA_SOURCE_SELECTOR@ $(PREPROCESS_HTTPSERVER) $(PREPROCESS_XML) $(PREPROCESS_JLINE3) $(PREPROCESS_AWT)
selected-java-source: Makefile $(srcdir)/patch-source-list
if test ! -e selected-java-source -o \
"$(JAVA_PREPROCESS_OPTIONS)" != "`cat selected-java-source`"; \
then $(MAKE) do-preprocess; \
fi
echo "$(JAVA_PREPROCESS_OPTIONS)" >selected-java-source
do-preprocess: gnu/kawa/util/PreProcess.class
CLASSPATH=".$(CLASSPATH_SEPARATOR)$$CLASSPATH" $(JAVA) gnu.kawa.util.PreProcess \
$(JAVA_PREPROCESS_OPTIONS) \
`sed -e 's|\([^ ]*\)|$(srcdir)/\1|' < $(srcdir)/patch-source-list`
GENERATED_SIMPLEVECTOR_FILES =\
$(srcdir)/gnu/lists/FVector.java \
$(srcdir)/gnu/lists/BitVector.java \
$(srcdir)/gnu/lists/ByteVector.java \
$(srcdir)/gnu/lists/ShortVector.java \
$(srcdir)/gnu/lists/IntVector.java \
$(srcdir)/gnu/lists/LongVector.java \
$(srcdir)/gnu/lists/F32Vector.java \
$(srcdir)/gnu/lists/F64Vector.java \
$(srcdir)/gnu/lists/S8Vector.java \
$(srcdir)/gnu/lists/S16Vector.java \
$(srcdir)/gnu/lists/S32Vector.java \
$(srcdir)/gnu/lists/S64Vector.java \
$(srcdir)/gnu/lists/U8Vector.java \
$(srcdir)/gnu/lists/U16Vector.java \
$(srcdir)/gnu/lists/U32Vector.java \
$(srcdir)/gnu/lists/U64Vector.java
.PHONY: make-primvector-source
make-primvector-source: $(srcdir)/gnu/lists/PrimVector.template gnu/kawa/util/PreProcess.class
CLASSPATH=".$(CLASSPATH_SEPARATOR)$$CLASSPATH" $(JAVA) gnu.kawa.util.PreProcess \
'%$(TAG)' '%UniformVector' -o $(OUT) $<
$(srcdir)/gnu/lists/FVector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=OBJECT
$(srcdir)/gnu/lists/BitVector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=BIT
$(srcdir)/gnu/lists/ByteVector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=BYTE
$(srcdir)/gnu/lists/ShortVector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=SHORT
$(srcdir)/gnu/lists/IntVector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=INT
$(srcdir)/gnu/lists/LongVector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=LONG
$(srcdir)/gnu/lists/F32Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=F32
$(srcdir)/gnu/lists/F64Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=F64
$(srcdir)/gnu/lists/S8Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=S8
$(srcdir)/gnu/lists/S16Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=S16
$(srcdir)/gnu/lists/S32Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=S32
$(srcdir)/gnu/lists/S64Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=S64
$(srcdir)/gnu/lists/U8Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=U8
$(srcdir)/gnu/lists/U16Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=U16
$(srcdir)/gnu/lists/U32Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=U32
$(srcdir)/gnu/lists/U64Vector.java: $(srcdir)/gnu/lists/PrimVector.template
$(MAKE) make-primvector-source OUT=$@ TAG=U64
clean-generated-simplevector-files:
-rm -f $(GENERATED_SIMPLEVECTOR_FILES)
if ON_WINDOWS
# kawa.sh is still needed for 'make check', even on Windows.
KAWASCRIPTS_KAWA = bin/kawa.bat bin/kawa.sh
else
if ENABLE_KAWA_FRONTEND
KAWASCRIPTS_KAWA = bin/kawa.sh
else
KAWASCRIPTS_KAWA = bin/kawa.sh bin/kawa
bin/kawa: bin/kawa.sh
cd bin && $(LN_S) kawa.sh kawa
endif
endif
noinst_SCRIPTS = bin/kawa.sh
bin_SCRIPTS = bin/qexo $(KAWASCRIPTS_KAWA)
#bin/kawa.bat: $(srcdir)/bin/kawa.bat.in
# sed -e 's|@VERSION@|$(VERSION)|' \
# -e 's|@DEFAULT_EXTRA_PATH@|'`echo '$(conf_classpath)'| sed -e 's|[\]|\\\\|g' -e 's|\&|\\&|g'`'|' \
# <$(srcdir)/bin/kawa.bat.in > bin/kawa.bat
STANDARD_NAMED_CHARS_URL = http://www.w3.org/2003/entities/2007/w3centities-f.ent
$(srcdir)/gnu/text/StandardNamedChars.java:
wget -nv -O - $(STANDARD_NAMED_CHARS_URL) \
| sed -n -e 's|&|\&|' \
-e '/ENTITY/s/^.*ENTITY *\([^ ]*\) *"\([^"]*\)" *>\(.*\)$$/ t.put("\1"\2);\3/p' \
| sed -e 's|<!--\(.*\)-->| // \1|' \
-e 's|&#x\([0-9a-fA-F]*\);|, 0x\1|g' \
-e 's|�*\([0-9a-fA-F]*\);|, \1|g' \
-e '1i\' \
-e '// DO NOT EDIT: This file is automatically generated by gnu/text/Makefile.\' \
-e 'package gnu.text;\' \
-e 'public class StandardNamedChars {\' \
-e ' public static final NamedCharTable instance = new NamedCharTable();\' \
-e ' static { NamedCharTable t = instance;' \
-e '$$a\' \
-e '}}' \
> $@
distall: distcheck dist-kawa.jar kawa-doc-$(VERSION).tar.gz
# Consider also: