summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorNicolas Schodet2012-11-05 00:20:03 +0100
committerNicolas Schodet2019-10-06 23:29:59 +0200
commitcdb7140cdf6def76725e3b9b29b5ac7c63425d05 (patch)
tree36d957f919d473a77bc6c2d17efbd9802abe8b7d /build
parentf5bc66aaabe2ac3bc51248f49dacc6b41808ce0b (diff)
build: update srec and bin files if present
This is done to avoid programming an outdated file by mistake.
Diffstat (limited to 'build')
-rw-r--r--build/arch.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/arch.mk b/build/arch.mk
index 9daaf82..61dbb14 100644
--- a/build/arch.mk
+++ b/build/arch.mk
@@ -88,6 +88,13 @@ srec: srec.$1
bin: bin.$1
all.$1: hex.$1
+ifneq ($$(wildcard *.$1.srec),)
+all.$1: srec.$1
+endif
+ifneq ($$(wildcard *.$1.bin),)
+all.$1: bin.$1
+endif
+
.PHONY: hex.$1 srec.$1 bin.$1
hex.$1: $$($1_PROGS:%=%.$1.hex)