blob: d8ed93c49dc02f7066f51f28055c1bb08a102e4c (
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
|
$NetBSD: patch-al,v 1.2 2006/07/04 22:27:43 rillig Exp $
Since GNU Make 3.81, the backslashes are preserved in the shell commands
and need to be filtered out explicitly.
--- ../coreconf/rules.mk.orig 2004-03-23 01:56:47.000000000 +0100
+++ ../coreconf/rules.mk 2006-06-24 10:20:21.000000000 +0200
@@ -882,7 +882,7 @@
ifneq (,$(filter-out OpenVMS OS2 WIN%,$(OS_TARGET)))
# Can't use sed because of its 4000-char line length limit, so resort to perl
.DEFAULT:
- @perl -e ' \
+ @perlcmd=' \
open(MD, "< $(DEPENDENCIES)"); \
while (<MD>) { \
if (m@ \.*/*$< @) { \
@@ -909,7 +909,9 @@
} elsif ("$<" ne "$(DEPENDENCIES)") { \
print "$(MAKE): *** No rule to make target $<. Stop.\n"; \
exit(1); \
- }'
+ }'; \
+ perlcmd=`echo "$$perlcmd" | sed -e 's,\\\\$$,,'`; \
+ perl -e "$$perlcmd"
endif
#############################################################################
|