Makefile: print a message by default, instead of cleaning everything

This commit is contained in:
Zihao Yu
2017-08-23 16:03:14 +08:00
parent 650f693084
commit 1f274c0dd1

View File

@ -1,4 +1,7 @@
-include nemu/Makefile.git -include nemu/Makefile.git
defalut:
@echo "Please run 'make' under any subprojects to compile."
clean: clean:
-$(MAKE) -C nemu clean -$(MAKE) -C nemu clean
@ -10,4 +13,4 @@ submit: clean
git gc git gc
cd .. && tar cj $(shell basename `pwd`) > $(STU_ID).tar.bz2 cd .. && tar cj $(shell basename `pwd`) > $(STU_ID).tar.bz2
.PHONY: clean submit .PHONY: default clean submit