Improve tags targets.
[pintos-anon] / src / Makefile
1 SUBDIRS = threads userprog vm filesys
2
3 all::
4         @echo "Run 'make' in subdirectories $(SUBDIRS)."
5         @echo "This top-level make has only 'clean' targets."
6
7 clean::
8         for d in $(SUBDIRS) tests; do $(MAKE) -C $$d $@; done
9
10 distclean:: clean
11         find . -name '*~' -exec rm '{}' \;
12
13 TAGS_SOURCES = `find \( -name tests -o -name build \) -prune -o -name \*.[chS] -print`
14
15 TAGS::
16         etags --members $(TAGS_SOURCES)
17
18 tags::
19         ctags -T --no-warn $(TAGS_SOURCES)
20