summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vpath.sed8
1 files changed, 8 insertions, 0 deletions
diff --git a/vpath.sed b/vpath.sed
new file mode 100644
index 00000000000..4f43cd4be65
--- /dev/null
+++ b/vpath.sed
@@ -0,0 +1,8 @@
+/^VPATH *=/c\
+# This works only in GNU make. Using the patterns avoids\
+# object files being found by VPATH, and thus permits building\
+# when $srcdir is configured itself.\
+vpath ymakefile $(srcdir)\
+vpath %.c $(srcdir)\
+vpath %.h $(srcdir)\
+\