]> git.wh0rd.org Git - fontconfig.git/commitdiff
Fix Makefile's to not create target file in case of failure
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 10 Mar 2009 06:15:37 +0000 (02:15 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 10 Mar 2009 06:16:09 +0000 (02:16 -0400)
fc-arch/Makefile.am
fc-lang/Makefile.am

index 7e1dd3ec01c8c1f7ede4065b5049da21fbd6c334..c226639f49c69b512337f2693a8f2fe386c0453a 100644 (file)
@@ -43,7 +43,8 @@ EXTRA_DIST=$(TMPL)
 
 $(TARG):fc-arch${EXEEXT} $(STMPL) ${top_srcdir}/src/fcint.h ../config.h
        rm -f $(TARG)
-       ./fc-arch${EXEEXT} $(ARCHITECTURE) < $(STMPL) > $(TARG)
+       ./fc-arch${EXEEXT} $(ARCHITECTURE) < $(STMPL) > $(TARG).tmp && \
+       mv $(TARG).tmp $(TARG)
 
 ALIAS_FILES = fcalias.h fcaliastail.h
 
index 60e4f318bc745f90e7cfc481692ca13fd15f28a4..f2108944c233edc03a60e73352c1810cea49ae68 100644 (file)
@@ -42,7 +42,8 @@ EXTRA_DIST=$(TMPL) $(ORTH)
 
 $(TARG):$(ORTH) fc-lang${EXEEXT} $(STMPL)
        rm -f $(TARG)
-       ./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG)
+       ./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG).tmp && \
+       mv $(TARG).tmp $(TARG)
 
 ALIAS_FILES = fcalias.h fcaliastail.h