cp: FEATURE_CP_LONG_OPTIONS depends on LONG_OPTS
[oweals/busybox.git] / scripts / individual
index 8c26668b91d21a19c5ff5cbf22a0be3d6c0f9091..e93ca5552724f809a1834b969e7cfb73e0545110 100755 (executable)
@@ -13,6 +13,13 @@ mkdir build
 # Make our prerequisites.
 
 make busybox.links include/bb_config.h $(pwd)/{libbb/libbb.a,archival/libunarchive/libunarchive.a,coreutils/libcoreutils/libcoreutils.a,networking/libiproute/libiproute.a}
+
+else
+# Could very well be that we want to build an individual applet but have no
+# 'build' dir yet..
+
+test -d ./build || mkdir build
+
 fi
 
 # About 3/5 of the applets build from one .c file (with the same name as the
@@ -99,7 +106,7 @@ function buildit ()
     gcc -Os -o build/$APPLET applets/individual.c $j \
        `extra_libraries $APPFILT` libbb/libbb.a -Iinclude \
        -DBUILD_INDIVIDUAL \
-       '-Drun_applet_by_name(...)' '-Dfind_applet_by_name(...)=0' \
+       '-Drun_applet_and_exit(...)' '-Dfind_applet_by_name(...)=0' \
        -DAPPLET_main=${APPFILT}_main -DAPPLET_full_usage=${HELPNAME}
     if [ $? -ne 0 ];
     then