blob: 8974a21c86f7ad8a505cff1a457f9c2f8bc7b73b (
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
|
diff --git a/bindings/Java/Makefile.am b/bindings/Java/Makefile.am
index a2ead24..1500dcd 100644
--- a/bindings/Java/Makefile.am
+++ b/bindings/Java/Makefile.am
@@ -67,6 +67,8 @@ java_classes= \
datebooktst.class \
adrtest.class
+$(java_classes): java_compile
+
java_compile: $(java_files)
$(JAVAC) -d . $(java_files)
@@ -81,16 +83,16 @@ java_pisock: java_compile java_lib java_jar
install: all
ARCH=""; \
for a in i386 amd64 ppc; do \
- if [ -e ${JAVABASE}/jre/lib/${a} ]; then \
- ARCH="${a}"; \
+ if [ -e ${JAVABASE}/jre/lib/$${a} ]; then \
+ ARCH="$${a}"; \
break; \
fi; \
done; \
- if [ -n "${ARCH}" ]; then \
+ if [ -n "$${ARCH}" ]; then \
echo "Unknown architecture. Copy lipijsock.so to ${JAVABASE}/jre/lib/ARCH/"; \
else \
- mkdir -p "$(DESTDIR)${JAVABASE}/jre/lib/${ARCH}" && \
- cp libjpisock.so "$(DESTDIR)${JAVABASE}/jre/lib/${ARCH}"; \
+ mkdir -p "$(DESTDIR)${JAVABASE}/jre/lib/$${ARCH}" && \
+ cp libjpisock.so "$(DESTDIR)${JAVABASE}/jre/lib/$${ARCH}"; \
echo "done."; \
fi
|