From 916640ce40b995d1d97244975139ec0c030483e4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 10 Mar 2009 02:15:37 -0400 Subject: [PATCH] Fix Makefile's to not create target file in case of failure --- fc-arch/Makefile.am | 3 ++- fc-lang/Makefile.am | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5