forgot about avn add... :(
[oweals/busybox.git] / scripts / individual
index 1463e0fc48ba8802aaff3e0e17cc974e68b047b4..a09a5dc7ae94061ea689bec2fd10aa77a08db86b 100755 (executable)
@@ -12,33 +12,13 @@ mkdir build
 
 # Make our prerequisites.
 
-make busybox.links include/bb_config.h
+make busybox.links include/bb_config.h $(pwd)/{libbb/libbb.a,archival/libunarchive/libunarchive.a,coreutils/libcoreutils/libcoreutils.a,networking/libiproute/libiproute.a}
 
-# Adding "libbb/libbb.a" to the previous line doesn't work, nor does going
-# "make libbb.a" in the libb directory.  The busybox makefile has layers and
-# layers of overcomplicated brokenness...
-
-cd libbb
-make
-cd ..
-
-# Same problem.
-
-cd archival/libunarchive
-make
-cd ../..
-
-# And again
-
-cd coreutils/libcoreutils
-make
-cd ../..
-
-# Sensing a pattern here?
+else
+# Could very well be that we want to build an individual applet but have no
+# 'build' dir yet..
 
-#cd networking/libiproute
-#make
-#cd ../..
+test -d ./build || mkdir build
 
 fi