build: fixed a build cmp warning

This commit is contained in:
Andrew Tridgell 2013-12-11 17:02:42 +11:00
parent 4a77a944fa
commit ceef872a51
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ $(SKETCHCPP): showflags $(SKETCHCPP_SRC)
$(v)echo "#line 1 \"autogenerated\"" >> $@.new $(v)echo "#line 1 \"autogenerated\"" >> $@.new
$(v)$(AWK) '$(SKETCH_PROTOTYPER)' $(SKETCHCPP_SRC) >> $@.new $(v)$(AWK) '$(SKETCH_PROTOTYPER)' $(SKETCHCPP_SRC) >> $@.new
$(v)$(AWK) -v mode=body '$(SKETCH_SPLITTER)' $(SKETCHCPP_SRC) >> $@.new $(v)$(AWK) -v mode=body '$(SKETCH_SPLITTER)' $(SKETCHCPP_SRC) >> $@.new
$(v)cmp $@ $@.new 2>/dev/null || mv $@.new $@ $(v)cmp $@ $@.new > /dev/null 2>&1 || mv $@.new $@
$(v)rm -f $@.new $(v)rm -f $@.new
# delete the sketch.cpp file if a processing error occurs # delete the sketch.cpp file if a processing error occurs