summaryrefslogtreecommitdiff
path: root/modules/inttypes
diff options
context:
space:
mode:
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