* Makefile ($(includedir)/stubs.h): Add missing backslash.
[platform/upstream/glibc.git] / Makefile
index 24203a2..8ff7284 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -144,7 +144,9 @@ $(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 echo stubs.h unchanged ; \
+       else $(INSTALL_DATA) $(objpfx)stubs.h $@; fi
        rm -f $(objpfx)stubs.h
 \f
 # This makes the Info or DVI file of the documentation from the Texinfo source.