]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: ppc: update version script usage
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Jan 2021 15:52:33 +0000 (10:52 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Jan 2021 15:54:06 +0000 (10:54 -0500)
This matches the changes in the common code.

sim/ppc/ChangeLog
sim/ppc/Makefile.in

index 6906cc26a6c4fe6af7a07e7a2bd63e1149c414da..1086ea927bca16a032c2f66f6ad4f49337f4458a 100644 (file)
@@ -1,3 +1,7 @@
+2021-01-19  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in (version.c): Simplifiy args and call move-if-change.
+
 2021-01-11  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac: Delete checks for stdlib.h, string.h,
index 8ad76c6ed3b1e15395b1172e963ed98c6c45b861..8c62f44297eb5376740cccbd8b5c4f51a9fc9ba4 100644 (file)
@@ -549,8 +549,9 @@ $(TARGETLIB): tmp-igen tmp-dgen tmp-hw tmp-pk tmp-defines $(LIB_OBJ) $(GDB_OBJ)
        $(RANLIB) $(TARGETLIB)
 
 version.c: Makefile $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(srcroot)/sim/common/create-version.sh
-       $(SHELL) $(srcroot)/sim/common/create-version.sh $(srcroot)/gdb \
-           $(host_alias) $(target_alias) version.c
+       $(SHELL) $(srcroot)/sim/common/create-version.sh $(srcroot)/gdb $@.tmp
+       $(SHELL) $(srcroot)/move-if-change $@.tmp $@
+       touch $@
 version.o: version.c $(version_h)
 
 psim.o: psim.c $(CPU_H) $(IDECODE_H) $(OPTIONS_H) $(TREE_H) $(BFD_H)