asterisk-15.x: remove .lastclean hack
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 9 Mar 2018 11:59:36 +0000 (12:59 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 9 Mar 2018 11:59:43 +0000 (12:59 +0100)
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>
net/asterisk-15.x/Makefile

index 6ba714f74798def75900a86e3b8cf1f40ce8da1e..a5e60b9a5a849eb17a19b8bdbaa3396ee72fb29f 100644 (file)
@@ -425,13 +425,15 @@ define Build/Compile
                        --disable BUILD_NATIVE \
                        $(if $(CONFIG_ASTERISK15_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