Revision 012f0879

b/Makefile
42 42

  
43 43
%/config-devices.mak: default-configs/%.mak
44 44
	$(call quiet-command,cat $< > $@.tmp, "  GEN   $@")
45
	@if test -f $@ ; then \
46
	  echo "WARNING: $@ out of date." ;\
47
	  echo "Run \"make defconfig\" to regenerate." ; \
48
	  rm $@.tmp ; \
45
	@if test -f $@; then \
46
	  if cmp -s $@.old $@ || cmp -s $@ $@.tmp; then \
47
	    mv $@.tmp $@; \
48
	    cp -p $@ $@.old; \
49
	  else \
50
	    if test -f $@.old; then \
51
	      echo "WARNING: $@ (user modified) out of date.";\
52
	    else \
53
	      echo "WARNING: $@ out of date.";\
54
	    fi; \
55
	    echo "Run \"make defconfig\" to regenerate."; \
56
	    rm $@.tmp; \
57
	  fi; \
49 58
	 else \
50
	  mv $@.tmp $@ ; \
59
	  mv $@.tmp $@; \
60
	  cp -p $@ $@.old; \
51 61
	 fi
52 62

  
53 63
defconfig:

Also available in: Unified diff