From: Behdad Esfahbod Date: Tue, 10 Mar 2009 06:15:37 +0000 (-0400) Subject: Fix Makefile's to not create target file in case of failure X-Git-Tag: 2.7.0~34 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=916640ce40b995d1d97244975139ec0c030483e4;p=fontconfig.git Fix Makefile's to not create target file in case of failure --- diff --git a/fc-arch/Makefile.am b/fc-arch/Makefile.am index 7e1dd3e..c226639 100644 --- a/fc-arch/Makefile.am +++ b/fc-arch/Makefile.am @@ -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 diff --git a/fc-lang/Makefile.am b/fc-lang/Makefile.am index 60e4f31..f210894 100644 --- a/fc-lang/Makefile.am +++ b/fc-lang/Makefile.am @@ -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