about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig4
1 files changed, 1 insertions, 3 deletions
diff --git a/Makeconfig b/Makeconfig
index 6a0d2b7f0b..ebe0723e80 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -716,9 +716,7 @@ $(common-objpfx)gnu/lib-names.stmp: $(common-objpfx)soversions.mk
 	  done;) | sort; \
 	 echo; \
 	 echo '#endif	/* gnu/lib-names.h */';) > ${@:stmp=T}
-	if test -r ${@:stmp=h} && cmp -s ${@:stmp=h} ${@:stmp=T}; \
-	then rm -f ${@:stmp=T}; \
-	else mv -f ${@:stmp=T} ${@:stmp=h}; fi
+	$(move-if-change) ${@:stmp=T} ${@:stmp=h}
 	touch $@
 
 common-generated += gnu/lib-names.h gnu/lib-names.stmp