Improve tags targets.
[pintos-anon] / src / Makefile
index 90c36af421eaa8af9e1ba016920c02552dfcca4a..c781a028d9b97b89e2bd178b7f66b5d7c219e17f 100644 (file)
@@ -10,9 +10,11 @@ clean::
 distclean:: clean
        find . -name '*~' -exec rm '{}' \;
 
+TAGS_SOURCES = `find \( -name tests -o -name build \) -prune -o -name \*.[chS] -print`
+
 TAGS::
-       etags --members *.[chS] `find $(SUBDIRS) -name \*.[chS]`
+       etags --members $(TAGS_SOURCES)
 
 tags::
-       ctags -T *.[chS] `find . -name \*.[chS]`
+       ctags -T --no-warn $(TAGS_SOURCES)