Make now runs ctags -R

This commit is contained in:
Sheldon Lee 2023-04-02 01:20:41 +01:00
parent 0cd0d410a1
commit f1cb03bc22

View File

@ -9,9 +9,9 @@ OBJS := $(SRCS:%.cpp=$(OBJD)/%.o)
CCFLAGS = -Wall
LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-system
.PHONY: all run clean
.PHONY: all run clean tags
all: $(TARGET)
all: $(TARGET) tags
$(TARGET): $(OBJS)
$(CC) $^ -o $(TARGET) $(LDFLAGS) $(CCFLAGS)
@ -23,6 +23,8 @@ $(OBJS): $(OBJD)/%.o: %.cpp
clean:
rm -r $(TARGET) $(OBJD)
run: main
run: $(TARGET) tags
./$(TARGET)
tags:
ctags -R