Prevent extra rebuild of fs.img by keeping intermediate object files.
This commit is contained in:
parent
c440b5cd97
commit
241c068066
6
Makefile
6
Makefile
|
@ -148,6 +148,12 @@ _forktest: forktest.o $(ULIB)
|
||||||
mkfs: mkfs.c fs.h
|
mkfs: mkfs.c fs.h
|
||||||
gcc -Werror -Wall -o mkfs mkfs.c
|
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=\
|
UPROGS=\
|
||||||
_cat\
|
_cat\
|
||||||
_echo\
|
_echo\
|
||||||
|
|
Loading…
Reference in a new issue