Clean TAGS, 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         rm -f TAGS tags
10
11 distclean:: clean
12         find . -name '*~' -exec rm '{}' \;
13
14 TAGS_SOURCES = `find \( -name tests -o -name build \) -prune -o -name \*.[chS] -print`
15
16 TAGS::
17         etags --members $(TAGS_SOURCES)
18
19 tags::
20         ctags -T --no-warn $(TAGS_SOURCES)
21