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:
parent
8a27a8df8f
commit
a2e2d1162b
5
Makefile
5
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."; \
|
||||
|
Loading…
Reference in New Issue
Block a user