From c65ca138c4be913964dbd332c44e861fced991cd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 19 Jan 2021 10:52:33 -0500 Subject: [PATCH] sim: ppc: update version script usage This matches the changes in the common code. --- sim/ppc/ChangeLog | 4 ++++ sim/ppc/Makefile.in | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 6906cc26a6c..1086ea927bc 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,7 @@ +2021-01-19 Mike Frysinger + + * Makefile.in (version.c): Simplifiy args and call move-if-change. + 2021-01-11 Mike Frysinger * configure.ac: Delete checks for stdlib.h, string.h, diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 8ad76c6ed3b..8c62f44297e 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -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) -- 2.30.2