X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Farpa_inet;h=7875e525b469a12df7fe7247c16a7e9422208d50;hb=f4a519da138fc11be756d442a893e2b54a07cece;hp=3ff0340a0f57c72ff035c66d62bd59e72d08c0c2;hpb=cd212d1cc21b115448c42325e6ae208d0868d77b;p=gnulib.git diff --git a/modules/arpa_inet b/modules/arpa_inet index 3ff0340a0..7875e525b 100644 --- a/modules/arpa_inet +++ b/modules/arpa_inet @@ -9,6 +9,7 @@ sys_socket configure.ac: gl_HEADER_ARPA_INET +AC_PROG_MKDIR_P Makefile.am: BUILT_SOURCES += $(ARPA_INET_H) @@ -16,8 +17,11 @@ BUILT_SOURCES += $(ARPA_INET_H) # We need the following in order to create when the system # doesn't have one. arpa/inet.h: - test -d arpa || mkdir arpa - echo '#include ' >$@-t + @MKDIR_P@ arpa + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#include '; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t MOSTLYCLEANDIRS += arpa