altosui: Clean up a few 'fat' build rules
authorKeith Packard <keithp@keithp.com>
Sun, 8 Jan 2012 04:56:49 +0000 (20:56 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 3 Jun 2012 02:38:02 +0000 (19:38 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/Makefile.am

index d494547b383ad9d52881613dd0fb1fd53333d9af..1ec45c5f8c1f56d971c34fbb2dd59c4e5f2be7f4 100644 (file)
@@ -259,7 +259,7 @@ altosui-jdb: Makefile
        echo 'exec jdb -classpath "classes:libaltos:$(FREETTS)/*:$(JFREECHART)/*:$(JCOMMON)/*" -Djava.library.path="libaltos/.libs" altosui/AltosUI "$$@"' >> $@
        chmod +x $@
 
-libaltos.so:
+libaltos.so: build-libaltos
        -rm -f "$@"
        $(LN_S) libaltos/.libs/"$@" .
 
@@ -275,10 +275,14 @@ altos64.dll: libaltos/altos64.dll
        -rm -f "$@"
        $(LN_S) libaltos/"$@" .
 
+libaltos/.libs/libaltos.so: build-libaltos
+
 libaltos/altos.dll: build-altos-dll
 
 libaltos/altos64.dll: build-altos64-dll
 
+build-libaltos:
+       +cd libaltos && make libaltos.la
 build-altos-dll:
        +cd libaltos && make altos.dll
 
@@ -289,7 +293,7 @@ $(ALTOSLIB_CLASS):
        -rm -f "$@"
        $(LN_S) ../altoslib/"$@" .
 
-$(FREETTS_CLASS): ../altoslib/"$@"
+$(FREETTS_CLASS):
        -rm -f "$@"
        $(LN_S) "$(FREETTS)"/"$@" .