]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Robustify makefile redirection use.
authorRoland McGrath <roland@hack.frob.com>
Wed, 10 Oct 2012 16:31:42 +0000 (09:31 -0700)
committerRoland McGrath <roland@hack.frob.com>
Wed, 10 Oct 2012 16:31:42 +0000 (09:31 -0700)
libcpu/ChangeLog
libcpu/Makefile.am

index b1d79a98e9d9b58bd4e56d843dba0ade59465eb9..5f7ed0445250ef5eed700ad3fe5875f3d4f00c1e 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-10  Roland McGrath  <roland@hack.frob.com>
+
+       * Makefile.am (%_defs, $(srcdir)/%_dis.h): Redirect to temp file,
+       mv into place with separate command.
+
 2012-06-26  Roland McGrath  <roland@hack.frob.com>
 
        * Makefile.am [!MAINTAINER_MODE] ($(srcdir)/%_dis.h): New rule.
index 8f62be23d18ef641e4a4751ac4a6979e49b203c4..1ef88010bec323af55d2467156d806b178da0471 100644 (file)
@@ -46,7 +46,8 @@ i386_disasm.o: i386.mnemonics $(srcdir)/i386_dis.h
 x86_64_disasm.o: x86_64.mnemonics $(srcdir)/x86_64_dis.h
 
 %_defs: $(srcdir)/defs/i386
-       m4 -D$* -DDISASSEMBLER $< > $@
+       m4 -D$* -DDISASSEMBLER $< > $@T
+       mv -f $@T $@
 
 if MAINTAINER_MODE
 noinst_HEADERS = memory-access.h i386_parse.h i386_data.h
@@ -54,7 +55,8 @@ noinst_HEADERS = memory-access.h i386_parse.h i386_data.h
 noinst_PROGRAMS = i386_gendis
 
 $(srcdir)/%_dis.h: %_defs i386_gendis
-       ./i386_gendis $< > $@
+       ./i386_gendis $< > $@T
+       mv -f $@T $@
 
 else