From 92c9733f3a9ca9ade74efcafe3e322eb1ddd9c51 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Wed, 16 Aug 2006 23:43:56 +0000 Subject: [PATCH] Show error messages when collecting the package info SVN-Revision: 4573 --- openwrt/Makefile | 2 +- openwrt/include/package.mk | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openwrt/Makefile b/openwrt/Makefile index 32cadb7f991..5b90c482f0a 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -44,7 +44,7 @@ endif @echo Collecting package info... @-for dir in package/*/; do \ echo Source-Makefile: $${dir}Makefile; \ - $(NO_TRACE_MAKE) --no-print-dir DUMP=1 -C $$dir 2>&- || echo "ERROR: please fix $${dir}Makefile" >&2; \ + $(NO_TRACE_MAKE) --no-print-dir DUMP=1 -C $$dir || echo "ERROR: please fix $${dir}Makefile" >&2; \ done > $@ pkginfo-clean: FORCE diff --git a/openwrt/include/package.mk b/openwrt/include/package.mk index 385a8465374..43f17589000 100644 --- a/openwrt/include/package.mk +++ b/openwrt/include/package.mk @@ -16,10 +16,12 @@ define Build/DefaultTargets ifeq ($(DUMP),) ifeq ($(CONFIG_AUTOREBUILD),y) ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),$(PKG_BUILD_DIR)) + $$(warning package has changed, need to rebuild $(subst $(TOPDIR)/,,$(PKG_BUILD_DIR))) $(PKG_BUILD_DIR)/.prepared: package-clean endif ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg -x ipkg-install $(IPKG_$(1)) $(PKG_BUILD_DIR)),$(IPKG_$(1))) + $$(warning $(subst $(TOPDIR)/,,$(PKG_BUILD_DIR)) has changed, need to rebuild $(subst $(TOPDIR)/,,$(IPKG_$(1)))) $(PKG_BUILD_DIR)/.built: package-rebuild endif endif -- 2.30.2