Revise makefile structure.
[pintos-anon] / src / Makefile
index d6d325516d88f40805af8eb05aa190e4b194d62e..90c36af421eaa8af9e1ba016920c02552dfcca4a 100644 (file)
@@ -5,15 +5,14 @@ all::
        @echo "This top-level make has only 'clean' targets."
 
 clean::
-       for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
+       for d in $(SUBDIRS) tests; do $(MAKE) -C $$d $@; done
 
-distclean::
-       $(MAKE) clean
+distclean:: clean
        find . -name '*~' -exec rm '{}' \;
 
 TAGS::
-       etags --members `find . -name \*.[chS]`
+       etags --members *.[chS] `find $(SUBDIRS) -name \*.[chS]`
 
 tags::
-       ctags -T `find . -name \*.[chS]`
+       ctags -T *.[chS] `find . -name \*.[chS]`