X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fsys_select;h=be92f4b557b8014e2da368cdcec6e229e53f862a;hb=04cd5487c7cb479142c1a5f2b5c542ec75373dd2;hp=efe3f889971fadada09298bc8902517f57d8a227;hpb=7e5eb8ffca4761e3074bf800612e095a6e7d9a6f;p=gnulib.git diff --git a/modules/sys_select b/modules/sys_select index efe3f8899..be92f4b55 100644 --- a/modules/sys_select +++ b/modules/sys_select @@ -9,6 +9,7 @@ sys_socket configure.ac: gl_HEADER_SYS_SELECT +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(SYS_SELECT_H) @@ -16,8 +17,11 @@ BUILT_SOURCES += $(SYS_SELECT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. sys/select.h: - test -d sys || mkdir sys - echo '#include ' >$@-t + @MKDIR_P@ sys + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#include '; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += sys/select.h sys/select.h-t MOSTLYCLEANDIRS += sys