From 4f9d3e2589ee8efbb0d34be822b441f915f176a7 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sat, 14 May 2022 11:07:25 -0400 Subject: [PATCH] update ctags when compiling --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0a88041..f701d51 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ OBJECTS := $(patsubst $(SRCDIR)/%.cpp, $(OBJDIR)/%.o, $(SOURCES)) BIN := $(BINDIR)/orbital_shipping -all: mkdirs $(BIN) tests +all: mkdirs $(BIN) tests tags @# automatically run tests when (re-)compiling @${TEST_BIN} .PHONY: all @@ -42,12 +42,15 @@ all: mkdirs $(BIN) tests tests: $(TEST_BIN) .PHONY: tests --include $(OBJDIR)/*.d +tags: + @ctags -R --exclude=ext/imgui/* --exclude=ext/tangerine/ext/* mkdirs: @-mkdir -p ./bin ./build .PHONY: mkdirs +-include $(OBJDIR)/*.d + $(BIN): $(COMMON_OBJECTS) $(OBJECTS) $(IMGUI_OBJECTS) $(IMGUI_IMP_OBJECTS) $(LIB) $(CXX) -o $@ $(LDFLAGS) $(COMMON_OBJECTS) $(OBJECTS) $(LIB) \ $(IMGUI_OBJECTS) $(IMGUI_IMP_OBJECTS)