configure: ensure output file only updated on success
eg. After running "false > $@", the output file modification time will be updated. So a despite failure, a repeated "make" will not re-run. Handle this by accumulating output to "$@.tmp", then move to $@ as a final step.
This commit is contained in:
1 parent
0c91c55348
commit
d44ddf441a
9 files changed
+65
-38
No files matched your search
@@ -8,8 +8,8 @@
|
||||
# This is a Makefile fragment, see src/ioc/Makefile.
|
||||
|
||||
stdRecords.dbd$(DEP): $(STDDIR)/rec/Makefile $(STDDIR)/rec/RULES
|
||||
@$(RM) $@
|
||||
@echo "$(COMMON_DIR)/stdRecords.dbd:" > $@
|
||||
@echo "$(COMMON_DIR)/stdRecords.dbd:" > $@.stdout
|
||||
$(MV) $@.stdout $@
|
||||
|
||||
$(COMMON_DIR)/stdRecords.dbd: $(STDDIR)/rec/Makefile $(STDDIR)/rec/RULES
|
||||
|
||||
|
||||
Reference in new issue
Block a user