Skip to content

Commit a3b9bdb

Browse files
Adding clean and deploy of compiled libs to build process
1 parent 1e261c2 commit a3b9bdb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

22
.DEFAULT_GOAL := all
3+
LIBRARY_ROOT := libs
34

45
init:
56
git submodule update --init
67
android update project -p .
78

8-
all: build-external build-jni build-java
9+
all: clean build-external build-jni build-java copy-libs
910

1011
build-external:
1112
cd external/ && \
@@ -20,3 +21,15 @@ build-java:
2021
ant compile && \
2122
cd bin/classes && \
2223
jar -cvf sqlcipher.jar .
24+
25+
clean:
26+
rm ${LIBRARY_ROOT}/armeabi/libsqlcipher_android.so && \
27+
rm ${LIBRARY_ROOT}/armeabi/libdatabase_sqlcipher.so && \
28+
rm ${LIBRARY_ROOT}/sqlcipher.jar
29+
30+
copy-libs:
31+
cp external/libs/armeabi/libsqlcipher_android.so \
32+
${LIBRARY_ROOT}/armeabi && \
33+
cp jni/libs/armeabi/libdatabase_sqlcipher.so \
34+
${LIBRARY_ROOT}/armeabi && \
35+
cp bin/classes/sqlcipher.jar ${LIBRARY_ROOT}

0 commit comments

Comments
 (0)