From 16277f803cd928fed7f087e557c2f6394899186c Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 23 Mar 2022 14:00:53 -0500 Subject: [PATCH] Allow directly building fluxengine, skipping other targets --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 7487f35f..d46544c0 100644 --- a/Makefile +++ b/Makefile @@ -81,10 +81,12 @@ CFLAGS += -Ilib -Idep/fmt -Iarch export OBJDIR = .obj +.PHONY: all all: .obj/build.ninja @ninja -f .obj/build.ninja @if command -v cscope > /dev/null; then cscope -bRq; fi +.PHONY: clean clean: @echo CLEAN @rm -rf $(OBJDIR) @@ -94,5 +96,10 @@ clean: @mkdir -p $(OBJDIR) @sh $< > $@ +.PHONY: compdb compdb: @ninja -f .obj/build.ninja -t compdb > compile_commands.json + +.PHONY: fluxengine fluxengine-debug +fluxengine fluxengine-debug: .obj/build.ninja + @ninja -f .obj/build.ninja "$@"