]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
buildsystem: Unbreak the build (infloop) on Asterisk 11+
authorMatthew Jordan <mjordan@digium.com>
Sun, 16 Feb 2014 01:47:45 +0000 (01:47 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 16 Feb 2014 01:47:45 +0000 (01:47 +0000)
Apparently r408084 ( https://reviewboard.asterisk.org/r/3212/ ) broke the
build. This patch fixes it by ignoring the .lastclean dependencies if the
MENUSELECT_EMBED variable is not defined.

patches:
  tmp.diff uploaded by wdoekes (License 5674)

Review: https://reviewboard.asterisk.org/r/3228/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@408193 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index c052f0d1e9f4f4fd3612bd2bd05c00bbc1495d8f..d112302f01c4191e4586ab7d967d8a1be2cf0a95 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -99,8 +99,6 @@ export LDCONFIG_FLAGS
 export PYTHON
 
 -include makeopts
-# we want the MENUSELECT_EMBED var
--include menuselect.makeopts
 
 # start the primary CFLAGS and LDFLAGS with any that were provided
 # to the configure script
@@ -365,7 +363,7 @@ makeopts.embed_rules: menuselect.makeopts
 $(SUBDIRS): makeopts .lastclean main/version.c include/asterisk/build.h include/asterisk/buildopts.h defaults.h makeopts.embed_rules
 
 ifeq ($(findstring $(OSARCH), mingw32 cygwin ),)
-  ifneq ($(MENUSELECT_EMBED),)
+  ifeq ($(shell grep ^MENUSELECT_EMBED=$$ menuselect.makeopts 2>/dev/null),)
     # Non-windows:
     # ensure that all module subdirectories are processed before 'main' during
     # a parallel build, since if there are modules selected to be embedded the