1
0
mirror of https://github.com/sjlongland/cluster-powerctl.git synced 2025-09-14 04:23:15 +10:00

Makefile: If setpoint.h{,.diff} matches, just update timestamp

This commit is contained in:
Stuart Longland 2017-03-19 12:37:22 +10:00
parent 8a27a8df8f
commit a2e2d1162b
Signed by: stuartl
GPG Key ID: F954BBBB7948D546

View File

@ -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."; \