summaryrefslogtreecommitdiff
path: root/modules/inttypes
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-09-06 21:58:00 +0000
committerJim Meyering <jim@meyering.net>2006-09-06 21:58:00 +0000
commitd1aadab21bf8755e0fb75a838dc650e73f6ee78d (patch)
tree0f674efb9371db835069405e0bc9c2afe4d80f05 /modules/inttypes
parent432f6b15b21916c7e9b99e5610741070c4f30c8f (diff)
downloadgnulib-d1aadab21bf8755e0fb75a838dc650e73f6ee78d.tar.gz
Make generated files be read-only.
* modules/alloca-opt (Makefile.am): Work also when $@ is read-only. Ensure that each generated file is now read-only. * modules/argz: Likewise. * modules/arpa_inet: Likewise. * modules/byteswap: Likewise. * modules/configmake: Likewise. * modules/fcntl: Likewise. * modules/fnmatch: Likewise. * modules/getopt: Likewise. * modules/glob: Likewise. * modules/inttypes: Likewise. * modules/netinet_in: Likewise. * modules/poll: Likewise. * modules/stdbool: Likewise. * modules/stdint: Likewise. * modules/sys_select: Likewise. * modules/sys_socket: Likewise. * modules/sys_stat: Likewise. * modules/sysexits: Likewise. * modules/localcharset: Same as above, but continue using temporary file named "t-$@" (why different?) rather than the "$@-t" used everywhere else. * modules/sysexits (Makefile.am): Replace literal occurrences of "sysexit.h" more readable, and more consistent, "$@".
Diffstat (limited to 'modules/inttypes')
-rw-r--r--modules/inttypes2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/inttypes b/modules/inttypes
index c397a4a197..5cb1e6d90b 100644
--- a/modules/inttypes
+++ b/modules/inttypes
@@ -21,6 +21,7 @@ EXTRA_DIST += inttypes_.h
# We need the following in order to create <inttypes.h> when the system
# 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' \
@@ -31,6 +32,7 @@ inttypes.h: inttypes_.h
-e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
-e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
< $(srcdir)/inttypes_.h > $@-t
+ chmod a-x $@-t
mv $@-t $@
MOSTLYCLEANFILES += inttypes.h inttypes.h-t