about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-01-15 01:54:31 +0000
committerRoland McGrath <roland@gnu.org>2004-01-15 01:54:31 +0000
commit1feda3ed299f7eb73545f013640eab1faef74362 (patch)
tree29467457e5567a76d7ff3f3ae33f61cff1d4a611
parent1406a0275f8e03b02b05d4be0400a3aaba328b4c (diff)
downloadglibc-1feda3ed299f7eb73545f013640eab1faef74362.tar.gz
glibc-1feda3ed299f7eb73545f013640eab1faef74362.tar.xz
glibc-1feda3ed299f7eb73545f013640eab1faef74362.zip
2004-01-13 Segher Boessenkool <boessen@de.ibm.com>
	* Makerules (gen-as-const): Don't silently continue on failure.
-rw-r--r--Makerules8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index 9aa0703be7..7e955b657d 100644
--- a/Makerules
+++ b/Makerules
@@ -189,9 +189,11 @@ endif
 $(common-objpfx)%.h $(common-objpfx)%.h.d: $(..)scripts/gen-as-const.awk \
 					   %.sym $(common-before-compile)
 	$(AWK) -f $< $(filter %.sym,$^) \
-	| $(CC) -S -o - $(CFLAGS) $(CPPFLAGS) -x c - \
-		-MD -MP -MF $(@:.h=.h.d)T -MT '$(@:.h=.h.d) $(@:.h.d=.h)' \
-	| sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$$/#define \1 \2/p' > $(@:.h.d=.h)T
+	| $(CC) -S -o $(@:.h.d=.h)T3 $(CFLAGS) $(CPPFLAGS) -x c - \
+		-MD -MP -MF $(@:.h=.h.d)T -MT '$(@:.h=.h.d) $(@:.h.d=.h)'
+	sed -n 's/^.*@@@name@@@\([^@]*\)@@@value@@@[^0-9Xxa-fA-F-]*\([0-9Xxa-fA-F-][0-9Xxa-fA-F-]*\).*@@@end@@@.*$$/#define \1 \2/p' \
+		$(@:.h.d=.h)T3 > $(@:.h.d=.h)T
+	rm -f $(@:.h.d=.h)T3
 	sed $(sed-remove-objpfx) $(sed-remove-dotdot) \
 	    $(@:.h=.h.d)T > $(@:.h=.h.d)T2
 	rm -f $(@:.h=.h.d)T