Files
safechat/cordova/makefile.am

48 lines
1.4 KiB
Plaintext
Raw Normal View History

## @id $Id$
## 1 2 3 4 5 6 7 8
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
2015-09-19 13:24:59 +00:00
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
2015-11-25 10:05:03 +00:00
if HAVE_CORDOVA
wwwdir = ${pkgdatadir}/html
www_DATA = ${ANDROID}
endif
2015-09-19 13:24:59 +00:00
${ANDROID_SRC}:
for file in ${cordova_sources}; do \
test -e "$${file}" || \
( cp -r "@srcdir@/$${file}" "$${file}" && \
chmod -R u+w "$${file}" ); \
done
2015-12-04 07:05:31 +00:00
if [ "$$(whoami 2> /dev/null)" != "root" ]; then \
#${CORDOVA} plugin add https://github.com/katzer/cordova-plugin-background-mode.git; \
2015-11-25 10:05:03 +00:00
${CORDOVA} build --debug || ${CORDOVA} build --debug; \
2015-09-20 20:45:22 +00:00
fi
${ANDROID}: ${ANDROID_SRC}
2015-12-04 07:05:31 +00:00
if [ "$$(whoami 2> /dev/null)" != "root" ]; then \
cp $< $@; \
2015-09-20 20:45:22 +00:00
fi
clean-local:
2015-09-21 19:46:55 +00:00
-platforms/android/cordova/clean
distclean-local:
-rm -r platforms/android/.gradle
2015-09-19 13:24:59 +00:00
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}"; \
2015-09-19 13:24:59 +00:00
fi; \
done
CLEANFILES = ${ANDROID} ${ANDROID_SRC}
MAINTAINERCLEANFILES = makefile.in