forked from Mirrorlandia_minetest/minetest
Android: use loop inside makefile to spare repetition
This commit is contained in:
parent
14f4cd0ef9
commit
a31d08be55
@ -615,7 +615,7 @@ clean_curl :
|
|||||||
|
|
||||||
curl_binary:
|
curl_binary:
|
||||||
@if [ ! -d "deps/curl-${CURL_VERSION_BINARY}" ] ; then \
|
@if [ ! -d "deps/curl-${CURL_VERSION_BINARY}" ] ; then \
|
||||||
echo "curl sources missing, downloading..."; \
|
echo "curl binary missing, downloading..."; \
|
||||||
mkdir -p ${ROOT}/deps; \
|
mkdir -p ${ROOT}/deps; \
|
||||||
cd deps; \
|
cd deps; \
|
||||||
wget http://curl.haxx.se/gknw.net/7.34.0/dist-android/curl-7.34.0-rtmp-ssh2-ssl-zlib-static-bin-android.tar.gz || exit 1;\
|
wget http://curl.haxx.se/gknw.net/7.34.0/dist-android/curl-7.34.0-rtmp-ssh2-ssl-zlib-static-bin-android.tar.gz || exit 1;\
|
||||||
@ -696,47 +696,14 @@ clean_sqlite3:
|
|||||||
|
|
||||||
$(ASSETS_TIMESTAMP) : $(IRRLICHT_LIB)
|
$(ASSETS_TIMESTAMP) : $(IRRLICHT_LIB)
|
||||||
@mkdir -p ${ROOT}/deps; \
|
@mkdir -p ${ROOT}/deps; \
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../builtin -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
for DIRNAME in {builtin,client,doc,fonts,games,mods,po,textures}; do \
|
||||||
|
LAST_MODIF=$$(find ${ROOT}/../../${DIRNAME} -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ]; then \
|
if [ $$(basename $$LAST_MODIF) != "timestamp" ]; then \
|
||||||
touch ${ROOT}/../../builtin/timestamp; \
|
touch ${ROOT}/../../$DIRNAME/timestamp; \
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
|
||||||
echo builtin changed $$LAST_MODIF; \
|
|
||||||
fi; \
|
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../client -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
|
||||||
touch ${ROOT}/../../client/timestamp; \
|
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
|
||||||
fi; \
|
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../doc -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
|
||||||
touch ${ROOT}/../../doc/timestamp; \
|
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
|
||||||
fi; \
|
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../fonts -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
|
||||||
touch ${ROOT}/../../fonts/timestamp; \
|
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
|
||||||
fi; \
|
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../games -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
|
||||||
touch ${ROOT}/../../games/timestamp; \
|
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
|
||||||
fi; \
|
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../mods -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
|
||||||
touch ${ROOT}/../../mods/timestamp; \
|
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
|
||||||
fi; \
|
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../po -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
|
||||||
touch ${ROOT}/../../po/timestamp; \
|
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
|
||||||
fi; \
|
|
||||||
LAST_MODIF=$$(find ${ROOT}/../../textures -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
|
||||||
touch ${ROOT}/../../textures/timestamp; \
|
|
||||||
touch ${ASSETS_TIMESTAMP}; \
|
touch ${ASSETS_TIMESTAMP}; \
|
||||||
|
echo ${DIRNAME} changed $$LAST_MODIF; \
|
||||||
fi; \
|
fi; \
|
||||||
|
done; \
|
||||||
LAST_MODIF=$$(find ${IRRLICHT_DIR}/media -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
LAST_MODIF=$$(find ${IRRLICHT_DIR}/media -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "); \
|
||||||
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
if [ $$(basename $$LAST_MODIF) != "timestamp" ] ; then \
|
||||||
touch ${IRRLICHT_DIR}/media/timestamp; \
|
touch ${IRRLICHT_DIR}/media/timestamp; \
|
||||||
|
Loading…
Reference in New Issue
Block a user