From a2e2d1162bba6de677f7986c0d31e3fbfb18a42a Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Sun, 19 Mar 2017 12:37:22 +1000 Subject: [PATCH] Makefile: If setpoint.h{,.diff} matches, just update timestamp --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9326ed9..d61c1c0 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,10 @@ powerctl.elf: powerctl.o uart.o powerctl.o: board.h setpoints.h uart.o: uartcfg.h uart.h setpoints.h: setpoints.h.dist - @if [ -f $@ ]; then \ + @if [ -f $@ ] ; then \ + if cmp $^ $@ ; then \ + exec touch $@; \ + fi; \ echo "Existing $@ found. Please compare this file with"; \ echo "$^ to check for any new definitions and merge as"; \ echo "required."; \