* Makefile ($(includedir)/stubs.h): Add missing backslash.
[platform/upstream/glibc.git] / Makefile
index ef211a6..8ff7284 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ endif
 # These are the subdirectories containing the library source.
 subdirs = csu assert ctype db locale intl catgets math setjmp signal stdlib \
          stdio-common $(stdio) malloc string wcsmbs time dirent grp pwd\
-         posix io termios resource misc socket sysvipc gmon gnulib     \
+         posix io termios resource misc login socket sysvipc gmon gnulib \
          wctype $(wildcard crypt) manual $(sysdep-subdirs) elf po
 export subdirs := $(subdirs)   # Benign, useless in GNU make before 3.63.
 
@@ -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.
@@ -225,7 +227,6 @@ distribute  := README INSTALL FAQ NOTES COPYING.LIB COPYING NEWS    \
               Makefile Makeconfig Makerules Rules Make-dist MakeTAGS   \
               extra-lib.mk o-iterator.mk                               \
               ansidecl.h mkinstalldirs move-if-change install-sh       \
-              extract-dynsym                                           \
               configure configure.in aclocal.m4 config.sub config.guess\
               config.make.in config-name.in Makefile.in                \
               munch-tmpl.c munch.awk sysdep.h set-hooks.h libc-symbols.h