diff options
author | Bruno Haible <bruno@clisp.org> | 2006-10-07 14:54:51 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-10-07 14:54:51 +0000 |
commit | e8886c908325158b4e127ac82fbc4fb8918aad85 (patch) | |
tree | 98bc6c497b51b49e3af48e4927646baa68d54844 /modules | |
parent | c5ce79f4c514b37b5756e85530112d778cff302a (diff) | |
download | gnulib-e8886c908325158b4e127ac82fbc4fb8918aad85.tar.gz |
Mark generated files as "DO NOT EDIT".
Diffstat (limited to 'modules')
-rw-r--r-- | modules/alloca-opt | 4 | ||||
-rw-r--r-- | modules/argz | 4 | ||||
-rw-r--r-- | modules/arpa_inet | 4 | ||||
-rw-r--r-- | modules/byteswap | 4 | ||||
-rw-r--r-- | modules/configmake | 4 | ||||
-rw-r--r-- | modules/fcntl | 6 | ||||
-rw-r--r-- | modules/fnmatch | 4 | ||||
-rw-r--r-- | modules/getopt | 4 | ||||
-rw-r--r-- | modules/glob | 4 | ||||
-rw-r--r-- | modules/inttypes | 22 | ||||
-rw-r--r-- | modules/netinet_in | 4 | ||||
-rw-r--r-- | modules/poll | 4 | ||||
-rw-r--r-- | modules/stdbool | 4 | ||||
-rw-r--r-- | modules/stdint | 46 | ||||
-rw-r--r-- | modules/sys_select | 4 | ||||
-rw-r--r-- | modules/sys_socket | 4 | ||||
-rw-r--r-- | modules/sys_stat | 6 | ||||
-rw-r--r-- | modules/sysexits | 4 | ||||
-rw-r--r-- | modules/unistd | 4 |
19 files changed, 88 insertions, 52 deletions
diff --git a/modules/alloca-opt b/modules/alloca-opt index ae0084c2a9..895741bbe1 100644 --- a/modules/alloca-opt +++ b/modules/alloca-opt @@ -19,7 +19,9 @@ EXTRA_DIST += alloca_.h # We need the following in order to create <alloca.h> when the system # doesn't have one that works with the given compiler. alloca.h: alloca_.h - cp -f $(srcdir)/alloca_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/alloca_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += alloca.h alloca.h-t diff --git a/modules/argz b/modules/argz index 63a6a29cdf..d516b5fb94 100644 --- a/modules/argz +++ b/modules/argz @@ -18,7 +18,9 @@ EXTRA_DIST += argz_.h # We need the following in order to create <argz.h> when the system # doesn't have one that works with the given compiler. argz.h: argz_.h - cp -f $(srcdir)/argz_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/argz_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += argz.h argz.h-t diff --git a/modules/arpa_inet b/modules/arpa_inet index cbbae09fe6..250c15b0ff 100644 --- a/modules/arpa_inet +++ b/modules/arpa_inet @@ -18,7 +18,9 @@ BUILT_SOURCES += $(ARPA_INET_H) arpa/inet.h: test -d arpa || mkdir arpa rm -f $@-t $@ - echo '#include <sys/socket.h>' >$@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#include <sys/socket.h>'; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t MOSTLYCLEANDIRS += arpa diff --git a/modules/byteswap b/modules/byteswap index 3f50ab600c..d76542d777 100644 --- a/modules/byteswap +++ b/modules/byteswap @@ -17,7 +17,9 @@ EXTRA_DIST += byteswap_.h # We need the following in order to create <byteswap.h> when the system # doesn't have one. byteswap.h: byteswap_.h - cp -f $(srcdir)/byteswap_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/byteswap_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += byteswap.h byteswap.h-t diff --git a/modules/configmake b/modules/configmake index c0354e434f..a19d29bf0c 100644 --- a/modules/configmake +++ b/modules/configmake @@ -27,7 +27,7 @@ Makefile.am: # listed in the Automake documentation. configmake.h: Makefile rm -f $@-t $@ - ( \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ echo '#define PREFIX "$(prefix)"'; \ echo '#define EXEC_PREFIX "$(exec_prefix)"'; \ echo '#define BINDIR "$(bindir)"'; \ @@ -54,7 +54,7 @@ configmake.h: Makefile echo '#define PKGLIBDIR "$(pkglibdir)"'; \ echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \ echo '#define PKGDATADIR "$(pkgdatadir)"'; \ - :) | sed '/""/d' >$@-t + } | sed '/""/d' > $@-t mv $@-t $@ BUILT_SOURCES += configmake.h CLEANFILES += configmake.h configmake.h-t diff --git a/modules/fcntl b/modules/fcntl index 357bdfa318..350ca5002a 100644 --- a/modules/fcntl +++ b/modules/fcntl @@ -20,8 +20,10 @@ EXTRA_DIST += fcntl_.h # doesn't have one that works with the given compiler. fcntl.h: fcntl_.h rm -f $@-t $@ - sed -e 's|@''ABSOLUTE_FCNTL_H''@|$(ABSOLUTE_FCNTL_H)|g' \ - < $(srcdir)/fcntl_.h > $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''ABSOLUTE_FCNTL_H''@|$(ABSOLUTE_FCNTL_H)|g' \ + < $(srcdir)/fcntl_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += fcntl.h fcntl.h-t diff --git a/modules/fnmatch b/modules/fnmatch index 83bd17e7ca..c086b19469 100644 --- a/modules/fnmatch +++ b/modules/fnmatch @@ -22,7 +22,9 @@ EXTRA_DIST += fnmatch_.h fnmatch_loop.c # We need the following in order to create <fnmatch.h> when the system # doesn't have one that supports the required API. fnmatch.h: fnmatch_.h - cp -f $(srcdir)/fnmatch_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/fnmatch_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t diff --git a/modules/getopt b/modules/getopt index ee754bc12f..bf1da55121 100644 --- a/modules/getopt +++ b/modules/getopt @@ -22,7 +22,9 @@ EXTRA_DIST += getopt_.h getopt_int.h # We need the following in order to create <getopt.h> when the system # doesn't have one that works with the given compiler. getopt.h: getopt_.h - cp -f $(srcdir)/getopt_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/getopt_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += getopt.h getopt.h-t diff --git a/modules/glob b/modules/glob index 2dc8ce1d60..77a6da0f8d 100644 --- a/modules/glob +++ b/modules/glob @@ -30,7 +30,9 @@ EXTRA_DIST += glob_.h glob-libc.h # We need the following in order to create <glob.h> when the system # doesn't have one that works with the given compiler. glob.h: glob_.h - cp -f $(srcdir)/glob_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/glob_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += glob.h glob.h-t diff --git a/modules/inttypes b/modules/inttypes index a5b9358a9f..d61614b28e 100644 --- a/modules/inttypes +++ b/modules/inttypes @@ -21,16 +21,18 @@ EXTRA_DIST += inttypes_.h # doesn't have one that works with the given compiler. inttypes.h: inttypes_.h rm -f $@-t $@ - sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ - -e 's|@''ABSOLUTE_INTTYPES_H''@|$(ABSOLUTE_INTTYPES_H)|g' \ - -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \ - -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ - -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \ - -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \ - -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \ - -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \ - -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \ - < $(srcdir)/inttypes_.h > $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ + -e 's/@''ABSOLUTE_INTTYPES_H''@/$(ABSOLUTE_INTTYPES_H)/g' \ + -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \ + -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ + -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \ + -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \ + -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \ + -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \ + -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \ + < $(srcdir)/inttypes_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += inttypes.h inttypes.h-t diff --git a/modules/netinet_in b/modules/netinet_in index f65dbcc4f5..2aac90e1cb 100644 --- a/modules/netinet_in +++ b/modules/netinet_in @@ -18,7 +18,9 @@ BUILT_SOURCES += $(NETINET_IN_H) netinet/in.h: test -d netinet || mkdir netinet rm -f $@-t $@ - echo '#include <sys/socket.h>' >$@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#include <sys/socket.h>'; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t MOSTLYCLEANDIRS += netinet diff --git a/modules/poll b/modules/poll index 9784c43414..9fad24d1a0 100644 --- a/modules/poll +++ b/modules/poll @@ -18,7 +18,9 @@ EXTRA_DIST += poll_.h # We need the following in order to create <poll.h> when the system # doesn't have one. poll.h: poll_.h - cp -f $(srcdir)/poll_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/poll_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += poll.h poll.h-t diff --git a/modules/stdbool b/modules/stdbool index 51fc36fc62..00e63c82fd 100644 --- a/modules/stdbool +++ b/modules/stdbool @@ -19,7 +19,9 @@ EXTRA_DIST += stdbool_.h # doesn't have one that works. stdbool.h: stdbool_.h rm -f $@-t $@ - sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += stdbool.h stdbool.h-t diff --git a/modules/stdint b/modules/stdint index d7dd07331f..df793eea82 100644 --- a/modules/stdint +++ b/modules/stdint @@ -25,28 +25,30 @@ EXTRA_DIST += stdint_.h # doesn't have one that works with the given compiler. stdint.h: stdint_.h rm -f $@-t $@ - sed -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ - -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's|@''ABSOLUTE_STDINT_H''@|$(ABSOLUTE_STDINT_H)|g' \ - -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ - -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ - -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ - -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ - -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ - -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ - -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ - -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ - -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ - -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ - -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ - -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ - -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ - -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ - -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ - -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ - -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ - -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ - < $(srcdir)/stdint_.h > $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ + -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ + -e 's|@''ABSOLUTE_STDINT_H''@|$(ABSOLUTE_STDINT_H)|g' \ + -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ + -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ + -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ + -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ + -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ + -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \ + -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \ + -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \ + -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \ + -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \ + -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \ + -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \ + -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \ + -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \ + -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \ + -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \ + -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \ + -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \ + < $(srcdir)/stdint_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += stdint.h stdint.h-t diff --git a/modules/sys_select b/modules/sys_select index 80dc8faca8..76ae6f9a5e 100644 --- a/modules/sys_select +++ b/modules/sys_select @@ -18,7 +18,9 @@ BUILT_SOURCES += $(SYS_SELECT_H) sys/select.h: test -d sys || mkdir sys rm -f $@-t $@ - echo '#include <sys/socket.h>' >$@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '#include <sys/socket.h>'; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += sys/select.h sys/select.h-t MOSTLYCLEANDIRS += sys diff --git a/modules/sys_socket b/modules/sys_socket index a27b87ca6e..7700769dbd 100644 --- a/modules/sys_socket +++ b/modules/sys_socket @@ -19,7 +19,9 @@ EXTRA_DIST += socket_.h # doesn't have one that works with the given compiler. sys/socket.h: socket_.h test -d sys || mkdir sys - cp -f $(srcdir)/socket_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/socket_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t MOSTLYCLEANDIRS += sys diff --git a/modules/sys_stat b/modules/sys_stat index 4fc957ffc8..4a50c13401 100644 --- a/modules/sys_stat +++ b/modules/sys_stat @@ -20,8 +20,10 @@ EXTRA_DIST += stat_.h sys/stat.h: stat_.h test -d sys || mkdir sys rm -f $@-t $@ - sed -e 's|@''ABSOLUTE_SYS_STAT_H''@|$(ABSOLUTE_SYS_STAT_H)|g' \ - < $(srcdir)/stat_.h > $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''ABSOLUTE_SYS_STAT_H''@|$(ABSOLUTE_SYS_STAT_H)|g' \ + < $(srcdir)/stat_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t MOSTLYCLEANDIRS += sys diff --git a/modules/sysexits b/modules/sysexits index 2872e36459..4ddacab94d 100644 --- a/modules/sysexits +++ b/modules/sysexits @@ -17,7 +17,9 @@ EXTRA_DIST += sysexit_.h # We need the following in order to create <sysexits.h> when the system # doesn't have one that works with the given compiler. sysexits.h: sysexit_.h - cp -f $(srcdir)/sysexit_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/sysexit_.h; \ + } > $@-t mv -f $@-t $@ MOSTLYCLEANFILES += sysexits.h sysexits.h-t diff --git a/modules/unistd b/modules/unistd index f54499f119..177b95ce19 100644 --- a/modules/unistd +++ b/modules/unistd @@ -15,7 +15,9 @@ BUILT_SOURCES += $(UNISTD_H) # We need the following in order to create an empty placeholder for # <unistd.h> when the system doesn't have one. unistd.h: - echo '/* Empty placeholder for $@. */' >$@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + echo '/* Empty placeholder for $@. */'; \ + } > $@ MOSTLYCLEANFILES += unistd.h Include: |