summaryrefslogtreecommitdiff
path: root/debian/patches/beta_make.patch
blob: ed7915b9612f37dabe727d6051304fec2235f45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- hurd/Makeconf.orig	2006-01-12 15:02:57.000000000 +0100
+++ hurd/Makeconf	2006-01-12 15:31:25.000000000 +0100
@@ -576,16 +576,18 @@
 # Here is how to build those dependency files
 
 # Dependencies for fooServer.c files.
+migs_d_SCRIPT = 'set -e; $(CPP) $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) \
+		-DSERVERPREFIX=S_ -M -MG $< | \
+	sed -e \'s/\.defs\.o:/Server\.c $@:/\' > $@)'
 %.migs_d: %.defs
-	(set -e; $(CPP) $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) \
-		 -DSERVERPREFIX=S_ -M -MG $< | \
-	sed -e 's/\.defs\.o:/Server\.c $@:/' > $@)
+	$(migs_d_SCRIPT)
 
 # Dependencies for fooUser.c files.
-%.migu_d: %.defs
-	(set -e; $(CPP) $(CPPFLAGS) $(MIGUFLAGS) $($*-MIGUFLAGS) \
+migu_d_SCRIPT = 'set -e; $(CPP) $(CPPFLAGS) $(MIGUFLAGS) $($*-MIGUFLAGS) \
 		-M -MG $< | \
-	sed -e 's/\.defs\.o:/User\.c $@:/' > $@)
+	sed -e \'s/\.defs\.o:/User\.c $@:/\' > $@)'
+%.migu_d: %.defs
+	$(migu_d_SCRIPT)
 
 # The associated .h files are build by the same CCP, so a simple massaging
 # of the previous two will work.