From: Cam Tenny Date: Wed, 24 Oct 2012 22:52:40 +0000 (-0400) Subject: Prevent extra rebuild of fs.img by keeping intermediate object files. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=241c068066c51e9e06adf6d45834b97a50d029cf;p=cs3210-lab0.git Prevent extra rebuild of fs.img by keeping intermediate object files. --- diff --git a/Makefile b/Makefile index 33bfb0a..20cb884 100644 --- a/Makefile +++ b/Makefile @@ -148,6 +148,12 @@ _forktest: forktest.o $(ULIB) mkfs: mkfs.c fs.h gcc -Werror -Wall -o mkfs mkfs.c +# Prevent deletion of intermediate files, e.g. cat.o, after first build, so +# that disk image changes after first build are persistent until clean. More +# details: +# http://www.gnu.org/software/make/manual/html_node/Chained-Rules.html +.PRECIOUS: %.o + UPROGS=\ _cat\ _echo\