aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-02-27 23:24:07 +1300
committerDavid Phillips <david@yeah.nah.nz>2021-02-27 23:24:07 +1300
commit4118386ca9a4cb717f0d79f636586f0151d3e985 (patch)
tree2b9028f989808e438a66eb63baafd1c0dae8867d
parent24aebac344e8fc672a93d921d492d61482e8c3ca (diff)
downloadaltimeter-4118386ca9a4cb717f0d79f636586f0151d3e985.tar.xz
Make `make size` depend on the ELF it measures
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a1d6ab9..a2546df 100644
--- a/Makefile
+++ b/Makefile
@@ -95,8 +95,8 @@ build/native/unity-test-runner/test_runner: $(TEST_OBJ)
$(REAL_ELF): $(REAL_OBJ)
$(AVR_CC) $(AVR_LDFLAGS) -o $@ $^
-size:
- [ -f "$(REAL_ELF)" ] && $(AVR_SIZE) -C --mcu="$(MCU)" "$(REAL_ELF)"
+size: $(REAL_ELF)
+ $(AVR_SIZE) -C --mcu="$(MCU)" "$(REAL_ELF)"
# ELF for simulator/emu. Note that whever I/O is required, the *_sim.{o,c}
# versions of each component will provide a mocked interface. This allows for