[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditionally compiling Java
From: |
Braden McDaniel |
Subject: |
Conditionally compiling Java |
Date: |
Mon, 10 Jun 2002 00:36:02 -0400 |
I'm trying to conditionally compile some Java sources (with javac) using
an Automake conditional:
JAVAROOT = $(top_builddir)/java
JAVA_FILES = MyClass1.java MyClass2.java
if WITH_JDK
noinst_JAVA = $(JAVA_FILES)
endif
EXTRA_DIST = $(JAVA_FILES)
I am having trouble when the condition is false. If JAVAROOT is defined
outside the conditional (as above), I get this error:
CLASSPATH=../../../java:../../../../java/vrml/field/../../../java:$CLASSPATH
-d ../../../java \
/bin/sh: -d: command not found
If the JAVAROOT definition is moved inside the conditional, I get this
error:
java/vrml/Makefile.am:10: JAVAROOT was already defined in condition
WITH_JDK_TRUE, which is implied by condition TRUE
JAVAROOT (User, where = java/vrml/Makefile.am:10) =
{
WITH_JDK_TRUE => $(top_builddir)/java
}
What to do?
--
Braden McDaniel e-mail: <address@hidden>
<http://endoframe.com> Jabber: <address@hidden>
- Conditionally compiling Java,
Braden McDaniel <=