make sure a predefined CFLAGS variable does not get in the way (fix for #4038)
[openwrt.git] / include / scan.mk
index 28f526a..7b818e8 100644 (file)
@@ -17,7 +17,7 @@ ifeq ($(IS_TTY),1)
   endef
 else
   define progress
-       :
+       :;
   endef
 endif
 
@@ -49,10 +49,10 @@ $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST)
 
 -include $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk
 
-$(TARGET_STAMP):
-       ( \
+$(TARGET_STAMP)::
+       +( \
                $(NO_TRACE_MAKE) $(FILELIST); \
-               MD5SUM=$$(cat $(FILELIST) | (md5sum || md5) | awk '{print $$1}'); \
+               MD5SUM=$$(cat $(FILELIST) | (md5sum || md5) 2>/dev/null | awk '{print $$1}'); \
                [ -f "$@.$$MD5SUM" ] || { \
                        rm -f $@.*; \
                        touch $@.$$MD5SUM; \
This page took 0.029442 seconds and 4 git commands to generate.