X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=Makefile;h=2c374e72bf33b40f32c6476d6b5013a6258910db;hp=de9eb1a4fa2765689f8e6e5b5d4c204acdaefa2f;hb=94d17ee9287aec1c4c9ee37ca02615e8293a5f3a;hpb=4aeb9609c112151614e95acc08e2a088a86fe8f4 diff --git a/Makefile b/Makefile index de9eb1a..2c374e7 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ -SUBDIRS = src grading doc +CLEAN_SUBDIRS = src doc tests all:: - @echo "This makefile has only 'clean' targets." + @echo "This makefile has only 'clean' and 'check' targets." clean:: - for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done + for d in $(CLEAN_SUBDIRS); do $(MAKE) -C $$d $@; done distclean:: clean find . -name '*~' -exec rm '{}' \; + +check:: + make -C tests $@