Don't make generated files read-only. That would bother too many
[gnulib.git] / modules / sys_socket
index 128f0cb..a27b87c 100644 (file)
@@ -19,10 +19,8 @@ EXTRA_DIST += socket_.h
 # 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-w $@-t
-       mv $@-t $@
+       cp -f $(srcdir)/socket_.h $@-t
+       mv -f $@-t $@
 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
 MOSTLYCLEANDIRS += sys