diff options
Diffstat (limited to 'robot')
-rw-r--r-- | robot/makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/robot/makefile b/robot/makefile index e4366d8..8ddcb28 100644 --- a/robot/makefile +++ b/robot/makefile @@ -18,6 +18,9 @@ AVRDUDE=avrdude CC=avr-gcc OBJ2HEX=avr-objcopy +BUILD_STR=$(shell git update-index -q --refresh; git describe --tags --dirty='*' --broken='x' | cut -c1-20) +CFLAGS += -DBUILD_STR="$(BUILD_STR)" + all: out.hex clean: @@ -31,6 +34,7 @@ a.out: $(OBJECTS) out.hex: a.out $(OBJ2HEX) -R .eeprom -O ihex $< $@ + $(info build $(BUILD_STR) complete) flash: out.hex $(AVRDUDE) -p $(AVRDUDE_DEVICE) -c avrisp2 -P $(PORT) -U flash:w:out.hex |