Revise makefile structure.
[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::
14         etags --members *.[chS] `find $(SUBDIRS) -name \*.[chS]`
15
16 tags::
17         ctags -T *.[chS] `find . -name \*.[chS]`
18