about summary refs log tree commit diff
path: root/mach/Machrules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-04-04 00:22:05 +0000
committerRoland McGrath <roland@gnu.org>2006-04-04 00:22:05 +0000
commit930e5aa1fdcaa8e6e29cf343353f036d9c8df555 (patch)
tree99112236c6fffbb2266e40c75f893103518d2d9f /mach/Machrules
parente7397b8473c8ebb49d0eabafe07cc15bf15f7944 (diff)
downloadglibc-930e5aa1fdcaa8e6e29cf343353f036d9c8df555.tar.gz
glibc-930e5aa1fdcaa8e6e29cf343353f036d9c8df555.tar.xz
glibc-930e5aa1fdcaa8e6e29cf343353f036d9c8df555.zip
[BZ #2507]
2006-04-03  Roland McGrath  <roland@frob.com>
	[BZ #2507]
	* mach/Machrules (.udeps-targets): New variable.
	($(objpfx)%.udeps static pattern rule): Use it to avoid \ inside
	quoted string.
Diffstat (limited to 'mach/Machrules')
-rw-r--r--mach/Machrules5
1 files changed, 3 insertions, 2 deletions
diff --git a/mach/Machrules b/mach/Machrules
index fd61833046..37693aec43 100644
--- a/mach/Machrules
+++ b/mach/Machrules
@@ -138,10 +138,11 @@ $(patsubst %,$(objpfx)%.udeps,$(user-interfaces)):
 # We must use $(CFLAGS) to get -O flags that affect #if's in header files.
 	$(include-%.defs) | \
 	$(CC) $(CFLAGS) $(CPPFLAGS) -M -x c - | \
-	sed -e 's,- *:,$@ $(@:.udeps=.ustamp) $(@:.udeps=.uh) $(@:.udeps=.__h)\
-			  $(@:.udeps=_server.c) $(@:.udeps=_server.h):,' \
+	sed -e 's,- *:,$(.udeps-targets):,' \
 	    $(sed-remove-objpfx) > $@.new
 	mv -f $@.new $@
+.udeps-targets = $@ $(@:.udeps=.ustamp) $(@:.udeps=.uh) $(@:.udeps=.__h) \
+		 $(@:.udeps=_server.c) $(@:.udeps=_server.h)
 endif
 
 # Look for the server stub files where they will be written.