From 4118386ca9a4cb717f0d79f636586f0151d3e985 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 27 Feb 2021 23:24:07 +1300 Subject: Make `make size` depend on the ELF it measures --- Makefile | 4 ++-- 1 file 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 -- cgit v1.1