diff --git a/Makefile b/Makefile index ea0b29239b6ee5bb0c8977fd2ef895b1b75b8d78..c9be643ae34243676c3d09e958c28ee805dda6e4 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ BUILD_DIR=$(CURDIR) # Before including a proper config-host.mak, assume we are in the source tree SRC_PATH=. -UNCHECKED_GOALS := %clean TAGS cscope +UNCHECKED_GOALS := %clean TAGS cscope ctags # All following code might depend on configuration variables ifneq ($(wildcard config-host.mak),) @@ -454,6 +454,11 @@ endif test speed: all $(MAKE) -C tests/tcg $@ +.PHONY: ctags +ctags: + rm -f $@ + find "$(SRC_PATH)" -name '*.[hc]' -exec ctags --append {} + + .PHONY: TAGS TAGS: rm -f $@