X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fsys_socket;h=a1785aaa9b129b74bf5da17f629a443b0abb74b4;hb=402c474488000ea5ad3c8bd64442938dbe4f61ce;hp=aa869548d5c7d0ac414f302c95de8c1e17b5c1fb;hpb=d1aadab21bf8755e0fb75a838dc650e73f6ee78d;p=gnulib.git diff --git a/modules/sys_socket b/modules/sys_socket index aa869548d..a1785aaa9 100644 --- a/modules/sys_socket +++ b/modules/sys_socket @@ -10,19 +10,19 @@ Depends-on: configure.ac: gl_HEADER_SYS_SOCKET +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(SYS_SOCKET_H) -EXTRA_DIST += socket_.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/socket.h: socket_.h - test -d sys || mkdir sys - rm -f $@-t $@ - cp $(srcdir)/socket_.h $@-t - chmod a-x $@-t - mv $@-t $@ + @MKDIR_P@ sys + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/socket_.h; \ + } > $@-t + mv -f $@-t $@ MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t MOSTLYCLEANDIRS += sys