Use "&& mv $@.tmp $@" for threads/intr-stubs.S.
[pintos-anon] / src / Makefile.build
index d5ce473e48e01620930369bcf29ae2a94f38c31e..aa8e650dffb18ea253398ef642e345e1edc6e178 100644 (file)
@@ -68,7 +68,7 @@ DEPENDS = $(patsubst %.o,%.d,$(OBJECTS))
 all: os.dsk
 
 threads/intr-stubs.S: threads/intr-stubs.pl threads/loader.h
-       $< > $@
+       $< > $@.tmp && mv $@.tmp $@
 
 threads/kernel.lds.s: CPPFLAGS += -P
 threads/kernel.lds.s: threads/kernel.lds.S threads/loader.h