Add makefiles for cleaning grades, top level.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Jan 2005 01:37:40 +0000 (01:37 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Jan 2005 01:37:40 +0000 (01:37 +0000)
Makefile [new file with mode: 0644]
grading/Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..de9eb1a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+SUBDIRS = src grading doc
+
+all::
+       @echo "This makefile has only 'clean' targets."
+
+clean::
+       for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
+
+distclean:: clean
+       find . -name '*~' -exec rm '{}' \;
diff --git a/grading/Makefile b/grading/Makefile
new file mode 100644 (file)
index 0000000..4b6ea0b
--- /dev/null
@@ -0,0 +1,11 @@
+SUBDIRS = userprog vm filesys
+
+all::
+       @echo "Run 'make' in subdirectories $(SUBDIRS)."
+       @echo "This makefile has only 'clean' targets."
+
+clean::
+       for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
+
+distclean:: clean
+       find . -name '*~' -exec rm '{}' \;