Change -cp option to -ci ("copy in").
[pintos-anon] / src / Makefile
index 72b234a1312739b7d8dafaf735409f6fde5e3012..d6d325516d88f40805af8eb05aa190e4b194d62e 100644 (file)
@@ -1,10 +1,19 @@
+SUBDIRS = threads userprog vm filesys
+
 all::
-       @echo "Run 'make' in the threads, userprog, filesys, or vm directory."
+       @echo "Run 'make' in subdirectories $(SUBDIRS)."
        @echo "This top-level make has only 'clean' targets."
 
 clean::
-       for d in threads; do $(MAKE) -C $$d $@; done
+       for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
 
 distclean::
        $(MAKE) clean
        find . -name '*~' -exec rm '{}' \;
+
+TAGS::
+       etags --members `find . -name \*.[chS]`
+
+tags::
+       ctags -T `find . -name \*.[chS]`
+