Make generated files be read-only.
[gnulib.git] / modules / netinet_in
index 47c00d0..9ab4a27 100644 (file)
@@ -17,7 +17,9 @@ BUILT_SOURCES += $(NETINET_IN_H)
 # doesn't have one.
 netinet/in.h:
        test -d netinet || mkdir netinet
+       rm -f $@-t $@
        echo '#include <sys/socket.h>' >$@-t
+       chmod a-x $@-t
        mv $@-t $@
 MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
 MOSTLYCLEANDIRS += netinet