Ensure temp file is closed before its directory is removed.
[gnulib.git] / modules / arpa_inet
index 3ff0340..cbbae09 100644 (file)
@@ -17,6 +17,7 @@ BUILT_SOURCES += $(ARPA_INET_H)
 # doesn't have one.
 arpa/inet.h:
        test -d arpa || mkdir arpa
+       rm -f $@-t $@
        echo '#include <sys/socket.h>' >$@-t
        mv $@-t $@
 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t