Force removal of Require-Bundle
[cc0/argeo-build.git] / jni.mk
diff --git a/jni.mk b/jni.mk
index a5bbccf9682458d84e03b9125f5c75a13c8e76c7..920ecf478048694dc4ba18b91c23a1575d7c5f55 100644 (file)
--- a/jni.mk
+++ b/jni.mk
@@ -36,10 +36,11 @@ clean:
        $(RM) $(A2_NATIVE_CATEGORY)/$(TARGET_EXEC)
 
 install:
-       install $(A2_NATIVE_CATEGORY)/$(TARGET_EXEC) $(A2_NATIVE_INSTALL_TARGET)
+       $(INSTALL) $(A2_NATIVE_INSTALL_TARGET) $(A2_NATIVE_CATEGORY)/$(TARGET_EXEC)
 
 uninstall:
        $(RM) $(A2_NATIVE_INSTALL_TARGET)/$(TARGET_EXEC)
+       @if [ -d $(A2_NATIVE_INSTALL_TARGET) ]; then find $(A2_NATIVE_INSTALL_TARGET) -empty -type d -delete; fi
 
 # Sources
 SRCS := $(shell find $(SRC_DIRS) -name '*.cpp' -or -name '*.c' -or -name '*.s')