Skip to content

Commit

Permalink
Makefile: Add "make ctags"
Browse files Browse the repository at this point in the history
This generates ctags file

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
Fam Zheng authored and Michael Tokarev committed Jun 23, 2015
1 parent eaa2ddb commit ae5fdc8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -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),)
Expand Down Expand Up @@ -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 $@
Expand Down

0 comments on commit ae5fdc8

Please sign in to comment.