X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Funistd;h=177b95ce19b5d65b3cea6b6c37b79dea4c5e0527;hb=ba240e2ebbe21e986c41e7af3eac7268716e7702;hp=6cb126a55d76fe2fa17e9221e36e7ce34a146bc1;hpb=767e884e3af06e0b9ea66dc7fa244becf8ae606d;p=gnulib.git diff --git a/modules/unistd b/modules/unistd index 6cb126a55..177b95ce1 100644 --- a/modules/unistd +++ b/modules/unistd @@ -2,7 +2,6 @@ Description: A for systems lacking it. Files: -lib/unistd_.h m4/unistd_h.m4 Depends-on: @@ -12,14 +11,14 @@ gl_HEADER_UNISTD Makefile.am: BUILT_SOURCES += $(UNISTD_H) -EXTRA_DIST += unistd_.h - -# We need the following in order to create when the system -# doesn't have one. -unistd.h: unistd_.h - cp $(srcdir)/unistd_.h $@-t - mv $@-t $@ -MOSTLYCLEANFILES += unistd.h unistd.h-t + +# We need the following in order to create an empty placeholder for +# when the system doesn't have one. +unistd.h: + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '/* Empty placeholder for $@. */'; \ + } > $@ +MOSTLYCLEANFILES += unistd.h Include: #include