From 2bd8f7c5a4a455d4447f111cc5fed90af76bf280 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Thu, 22 Sep 2022 13:04:12 -0700 Subject: Support comments in tests --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 184f7c0..f470f1b 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ DEBUG := -g CXX := g++ CXXFLAGS := $(WARNINGS) $(OPTIMIZE) $(DEBUG) +SED := sed + XXD := xxd override CXXFLAGS += -std=c++20 @@ -47,4 +49,4 @@ $(BUILD)/procmodel: $(OBJECTS) $(BUILD)/%.bin: %.hex @mkdir -p $(dir $@) - $(XXD) -r -p $< $@ + $(SED) -e "s/\\s*#.*//" $< | $(XXD) -r -p > $@ -- cgit v1.2.3