From 1bcc32d20ee43ad10e9feafceaf6e517df21050f Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 1 Nov 2023 19:44:52 +0100 Subject: make: add run/% target to build & run a single simulation --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 54ac0ae..360a8b9 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,10 @@ run: build $$B; \ done +run/%: $(SYSTEMC_HOME)/lib/libsystemc.a BUILD/PLAYGROUND/CMakeCache.txt src/%.cc + ninja -C BUILD/PLAYGROUND $(NINJA_FLAGS) $* + BUILD/PLAYGROUND/$* + test: build cd BUILD/PLAYGROUND/test && ctest --output-on-failure $(CCTEST_FLAGS) -- cgit v1.2.3