## @id $Id$ ## 1 2 3 4 5 6 7 8 ## 45678901234567890123456789012345678901234567890123456789012345678901234567890 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 if CORDOVA wwwdir = ${pkgdatadir}/html www_DATA = ${ANDROID} endif ${ANDROID_SRC}: for file in ${cordova_sources}; do \ test -e "$${file}" || \ ( cp -r "@srcdir@/$${file}" "$${file}" && \ chmod -R u+w "$${file}" ); \ done if [ "$$(whoami)" != "root" ]; then \ cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git; \ cordova build --debug || cordova build --debug; \ fi ${ANDROID}: ${ANDROID_SRC} if [ "$$(whoami)" != "root" ]; then \ cp $< $@; \ fi clean-local: -platforms/android/cordova/clean distclean-local: -rm -r platforms/android/.gradle for file in ${cordova_sources}; do \ if test "@srcdir@/$${file}" != "$${file}" \ -a -e "$${file}" \ -a "@srcdir@" != "." \ -a "@srcdir@" != "./"; then \ chmod -R u+w "$${file}" && rm -r "$${file}"; \ fi; \ done CLEANFILES = ${ANDROID} ${ANDROID_SRC} MAINTAINERCLEANFILES = makefile.in