aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 24203a2aa0..42c1ebb7d7 100644
--- a/Makefile
+++ b/Makefile
@@ -144,7 +144,8 @@ $(includedir)/stubs.h: subdir_install
echo ' in the C library which is a stub, meaning it will fail';\
echo ' every time called, usually setting errno to ENOSYS. */';\
sort $(subdir-stubs)) > $(objpfx)stubs.h
- $(INSTALL_DATA) $(objpfx)stubs.h $@
+ if test -r $@ && cmp -s $(objpfx)stubs.h $@; then : ; \
+ else $(INSTALL_DATA) $(objpfx)stubs.h $@; fi
rm -f $(objpfx)stubs.h
# This makes the Info or DVI file of the documentation from the Texinfo source.