Browse files

Makefile: Add 'tags' target

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information...
1 parent 93f75f8 commit 3fa5f51f21934594adcdff5a430b0acdee383a9b @davvid davvid committed Nov 23, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +5 −1 Makefile
View
1 .gitignore
@@ -1,6 +1,7 @@
/config.mak
/Meta
/build
+/tags
*.py[co]
*.swp
*~
View
6 Makefile
@@ -4,6 +4,7 @@ prefix ?= $(CURDIR)/mockfs-$(version)
docdir ?= $(DESTDIR)$(prefix)/share/doc/mockfs/html
webdir ?= $(docdir)
+CTAGS ?= ctags
NOSE ?= nosetests
PYTHON ?= python
RSYNC ?= rsync -r --stats --delete --exclude=.gitignore --exclude=.git
@@ -31,8 +32,11 @@ website-docs: docs
@mkdir -p $(DESTDIR)$(webdir)
@$(RSYNC) docs/build/html/ $(DESTDIR)$(webdir)/
+tags:
+ find mockfs -name '*.py' -print0 | xargs -0 $(CTAGS)
+
test: all
@$(MAKE) -C docs doctest
@$(NOSE) --with-doctest
-.PHONY: all docs install install-docs website-docs test
+.PHONY: all docs install install-docs website-docs tags test

0 comments on commit 3fa5f51

Please sign in to comment.