Use "&& mv $@.tmp $@" for threads/intr-stubs.S.
[pintos-anon] / src / Makefile.build
index baf4d83d565384926de500522ea71518964a126d..aa8e650dffb18ea253398ef642e345e1edc6e178 100644 (file)
@@ -68,9 +68,9 @@ 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 -C
+threads/kernel.lds.s: CPPFLAGS += -P
 threads/kernel.lds.s: threads/kernel.lds.S threads/loader.h
 
 kernel.o: threads/kernel.lds.s $(OBJECTS)