From a3b9bdbdb1839cfb5d49431d339ad7bd69c23ff2 Mon Sep 17 00:00:00 2001 From: Nick Parker Date: Tue, 1 Nov 2011 07:59:39 -0500 Subject: [PATCH] Adding clean and deploy of compiled libs to build process --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a954bbda..0fa85636 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ .DEFAULT_GOAL := all +LIBRARY_ROOT := libs init: git submodule update --init android update project -p . -all: build-external build-jni build-java +all: clean build-external build-jni build-java copy-libs build-external: cd external/ && \ @@ -20,3 +21,15 @@ build-java: ant compile && \ cd bin/classes && \ jar -cvf sqlcipher.jar . + +clean: + rm ${LIBRARY_ROOT}/armeabi/libsqlcipher_android.so && \ + rm ${LIBRARY_ROOT}/armeabi/libdatabase_sqlcipher.so && \ + rm ${LIBRARY_ROOT}/sqlcipher.jar + +copy-libs: + cp external/libs/armeabi/libsqlcipher_android.so \ + ${LIBRARY_ROOT}/armeabi && \ + cp jni/libs/armeabi/libdatabase_sqlcipher.so \ + ${LIBRARY_ROOT}/armeabi && \ + cp bin/classes/sqlcipher.jar ${LIBRARY_ROOT}