aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 15:12:01 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 15:12:01 -0800
commit060ace366b5a45bffff58608b5e8290b3c9fa647 (patch)
tree82a4bc6a3fdc717b1f7878e534a7bbd51902f671 /Makefile
parent8df395e7015d68518f125c71cabaf5666ff9a573 (diff)
Added tags to makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5a29553..da0fbc7 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ ALL_FLAGS=$(CFLAGS) -DBP_NAME="\"$(NAME)\"" $(EXTRA) $(CWARN) $(G) $(O)
CFILES=pattern.c definitions.c utils.c match.c files.c print.c json.c
OBJFILES=$(CFILES:.c=.o)
-all: $(NAME)
+all: $(NAME) tags
%.o: %.c %.h types.h
$(CC) -c $(ALL_FLAGS) -o $@ $<
@@ -20,6 +20,9 @@ all: $(NAME)
$(NAME): $(OBJFILES) bp.c
$(CC) $(ALL_FLAGS) -o $@ $(OBJFILES) bp.c
+tags: $(CFILES) bp.c
+ ctags *.c *.h
+
clean:
rm -f $(NAME) $(OBJFILES)