summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Kemper2018-03-09 11:42:33 +0000
committerSebastian Kemper2018-03-09 11:45:29 +0000
commit23f5a70e0de296c16d3ea6900553e206fe2ab1e0 (patch)
tree3864a120c75d5168d3284fec069f2dadcedbebc6
parent2184038734019ba5bd513575032b6bb4d3e74820 (diff)
downloadtelephony-23f5a70e0de296c16d3ea6900553e206fe2ab1e0.tar.gz
asterisk-13.x: remove .lastclean hack
Remove the hack. Instead just call make with .lastclean and afterward make menuselect again. If .lastclean was not removed by menuselect this will not do anything, which is nice. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
-rw-r--r--net/asterisk-13.x/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/asterisk-13.x/Makefile b/net/asterisk-13.x/Makefile
index fbfd69d..cf3f68a 100644
--- a/net/asterisk-13.x/Makefile
+++ b/net/asterisk-13.x/Makefile
@@ -418,13 +418,15 @@ define Build/Compile
--disable BUILD_NATIVE \
$(if $(CONFIG_ASTERISK13_LOW_MEMORY),--enable LOW_MEMORY) \
menuselect.makeopts
- # Hack:
+
# When changing anything in MENUSELECT_CFLAGS the file ".lastclean"
# gets deleted. E.g. when compiling on x86 for x86 "--disable
# BUILD_NATIVE" changes MENUSELECT_CFLAGS and the file gets removed.
# But that will result in a rebuild attempt of menuselect which will
- # likely fail. Prevent that by recreating ".lastclean".
- $(CP) "$(PKG_BUILD_DIR)/.cleancount" "$(PKG_BUILD_DIR)/.lastclean"
+ # likely fail. Prevent that by recreating ".lastclean" and menuselect.
+ $(call Build/Compile/Default,.lastclean)
+ $(call Build/menuselect)
+
$(call Build/Compile/Default,all install samples)
endef