altosui: hack to make JAVAROOT directory get created before javac runs
authorKeith Packard <keithp@keithp.com>
Thu, 9 Sep 2010 22:22:14 +0000 (15:22 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 9 Sep 2010 22:22:14 +0000 (15:22 -0700)
This ensures that the JAVAROOT directory gets created by adding it to
the variable used to set the CLASSPATH environment value.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/altosui/Makefile.am

index 4bb67c9..f224dac 100644 (file)
@@ -1,7 +1,7 @@
 JAVAROOT=classes
 AM_JAVACFLAGS=-encoding UTF-8
 
-CLASSPATH_ENV=CLASSPATH=".:classes:../libaltos:$(FREETTS)/*:/usr/share/java/*"
+CLASSPATH_ENV=mkdir -p $(JAVAROOT); CLASSPATH=".:classes:../libaltos:$(FREETTS)/*:/usr/share/java/*"
 
 bin_SCRIPTS=altosui
 
@@ -109,11 +109,6 @@ install-altosuiJAVA: altosui.jar
 classes/altosui:
        mkdir -p classes/altosui
 
-classaltosui.stamp: classes
-
-classes:
-       mkdir -p classes
-
 $(JAR): classaltosui.stamp Manifest.txt $(JAVA_ICON)
        jar cfm $@ Manifest.txt \
                -C $(top_srcdir)/icon altus-metrum-16x16.jpg \