Commit bcad6288 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

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.
parent 0770fcc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ _source-check:

external-deps:
	@$(MAKE) -Bs BR2_WGET=$(TOPDIR)/toolchain/wget-show-external-deps.sh \
	source
		SPIDER=--spider source

#############################################################
#
+1 −1
Original line number Diff line number Diff line
@@ -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