diff --git a/.gitignore b/.gitignore index 209e7d3..9ad19c0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ **/compiled _build .dir-locals.el -ax* \ No newline at end of file +ax* +TAGS diff --git a/Makefile b/Makefile index 7f88805..5b822a3 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,10 @@ hdrs = $(wildcard **/*.h) test_bin = axtest -all: ${test_bin} +all: TAGS ${test_bin} clean: - rm -rf ${test_bin} _build + rm -rf ${test_bin} _build TAGS gen: mkdir -p _build @@ -29,4 +29,7 @@ gen: ${test_bin}: ${srcs} ${hdrs} ${cc} ${cflags} ${srcs} ${sdl_ldflags} -o ${test_bin} -.PHONY: all clean gen +TAGS: + etags ${srcs} + +.PHONY: all clean gen TAGS