summaryrefslogtreecommitdiffhomepage
path: root/digital
diff options
context:
space:
mode:
authorNicolas Schodet2012-11-05 00:20:03 +0100
committerNicolas Schodet2012-12-01 18:45:17 +0100
commit0aec0e37c266f58460aa4e85b688b0e3a03b47b3 (patch)
treeb02b6ae99a9d26b242611a68be94eef5fb3c5331 /digital
parent4f29b9b1ad032802abf661e9edc09311974aff1b (diff)
digital/ucoolib/build: update srec and bin files if present
This is done to avoid programming an outdated file by mistake.
Diffstat (limited to 'digital')
-rw-r--r--digital/ucoolib/build/arch.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/digital/ucoolib/build/arch.mk b/digital/ucoolib/build/arch.mk
index 9daaf82d..61dbb142 100644
--- a/digital/ucoolib/build/arch.mk
+++ b/digital/ucoolib/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)