summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-08-26 15:57:09 -0700
committerKeith Packard <keithp@keithp.com>2010-08-26 15:57:09 -0700
commit34055129b4008f6a9833887b12dee39ffa408002 (patch)
treebf09d5ccd5d9ec02513433a3d0dd16768c99ffbd /src
parent99400fdc0f19ef538fc362dde5c3ab5b7cdac409 (diff)
altos: always rebuild ao_product.c to track git version
The git version is built into ao_product.c and saved in eeprom log files, providing useful diagnostics about the firmware revision used for each flight. However, if ao_product.c isn't recompiled, then the updated version won't be included. Force recompilation of this file each time make is run to ensure that the final output contains an updated version number. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.proto4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile.proto b/src/Makefile.proto
index 8bc8b0e1..59a3b8a6 100644
--- a/src/Makefile.proto
+++ b/src/Makefile.proto
@@ -214,9 +214,11 @@ all: ../$(PROG)
../altitude.h: make-altitude
nickle $< > $@
-ao_product.h: ao-make-product.5c
+ao_product.h: ao-make-product.5c always
$(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
+always:
+
ao_product.rel: ao_product.c ao_product.h
$(call quiet,CC) -c $(CFLAGS) -D PRODUCT_DEFS='\"ao_product.h\"' -o$@ $<