From bcad6288f5f23229677a63e3ccea65093efcb933 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 24 Jul 2008 13:38:39 +0000 Subject: Makefile.autotools.in: fix make source-check/external-deps differently The MAKELEVEL test is not that robust; It fails with the recent log support or if buildroot is driven from an external Makefile. Rework it to instead detect source-check/external-deps by the fact that they set SPIDER. --- package/Makefile.autotools.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package') diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in index 16fc37192..5e94b447e 100644 --- a/package/Makefile.autotools.in +++ b/package/Makefile.autotools.in @@ -131,7 +131,7 @@ TAR ?= tar # Retrieve and unpack the archive $(BUILD_DIR)/%/.stamp_downloaded: # support make source-check/external-deps -ifeq ($(MAKELEVEL),1) +ifneq ($(SPIDER),) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH)) else -- cgit v1.2.3