|
|
|
@ -3,14 +3,20 @@ |
|
|
|
|
## 1 2 3 4 5 6 7 8 |
|
|
|
|
## 45678901234567890123456789012345678901234567890123456789012345678901234567890 |
|
|
|
|
|
|
|
|
|
EXTRA_DIST = config.xml.in hooks platforms plugins www |
|
|
|
|
cordova_sources = hooks platforms plugins www |
|
|
|
|
EXTRA_DIST = config.xml.in ${cordova_sources} |
|
|
|
|
ANDROID = safechat.apk |
|
|
|
|
#ANDROID_SRC = platforms/android/build/outputs/apk/android-release-unsigned.apk |
|
|
|
|
ANDROID_SRC = platforms/android/build/outputs/apk/android-debug.apk |
|
|
|
|
wwwdir = ${pkgdatadir}/html |
|
|
|
|
www_DATA = ${ANDROID} |
|
|
|
|
|
|
|
|
|
${ANDROID_SRC}: ${EXTRA_DIST} |
|
|
|
|
${ANDROID_SRC}: |
|
|
|
|
for file in ${cordova_sources}; do \ |
|
|
|
|
test -e "$${file}" || \ |
|
|
|
|
( cp -r "@srcdir@/$${file}" "$${file}" && \ |
|
|
|
|
chmod -R u+w "$${file}" ); \ |
|
|
|
|
done |
|
|
|
|
cordova build --debug |
|
|
|
|
|
|
|
|
|
${ANDROID}: ${ANDROID_SRC} |
|
|
|
@ -19,6 +25,13 @@ ${ANDROID}: ${ANDROID_SRC} |
|
|
|
|
clean-local: |
|
|
|
|
platforms/android/cordova/clean |
|
|
|
|
-rm -r platforms/android/.gradle |
|
|
|
|
for file in ${cordova_sources}; do \ |
|
|
|
|
if test "@srcdir@/$${file}" != "$${file}" \ |
|
|
|
|
-a "@srcdir@" != "." \ |
|
|
|
|
-a "@srcdir@" != "./"; then \ |
|
|
|
|
chmod -R u+w "$${file}" && rm -r "$${file}"; \ |
|
|
|
|
fi; \ |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
CLEANFILES = ${ANDROID} ${ANDROID_SRC} |
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
|