build directory except for the Makefile itself.
cd $@/src/$(PROJECT) && $(MAKE)
endef
+define test-clean
+cd $@/src/$(PROJECT)/build && $(MAKE) clean
+cd $@/src/$(PROJECT)/build && set `find -type f` > /dev/null && test $$# = 1
+endef
+
define clean
rm -rf $@
endef
$(mk-sandbox)
$(compile)
$(run-tests) TESTS=tests/threads/alarm-single
+ $(test-clean)
+ $(clean)
+userprog vm filesys::
+ $(mk-sandbox)
+ $(compile)
+ $(test-clean)
$(clean)
-examples userprog vm filesys::
+examples::
$(mk-sandbox)
$(compile)
$(clean)
$(apply-patch)
$(run-tests)
$(grade-tests)
+ $(test-clean)
$(clean)