Show error messages when collecting the package info
authorMike Baker <mbm@openwrt.org>
Wed, 16 Aug 2006 23:43:56 +0000 (23:43 +0000)
committerMike Baker <mbm@openwrt.org>
Wed, 16 Aug 2006 23:43:56 +0000 (23:43 +0000)
SVN-Revision: 4573

openwrt/Makefile
openwrt/include/package.mk

index 32cadb7f991e7455a14684715c00c73a1c9b5777..5b90c482f0a657420986e1eb3d15762af22ba8b6 100644 (file)
@@ -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
index 385a84653741e1f24995bab3823f1980b63655fe..43f175890008626f9a968ead2b9e36a8dd68d9b6 100644 (file)
@@ -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