summaryrefslogtreecommitdiff
path: root/vpath.sed
diff options
context:
space:
mode:
Diffstat (limited to 'vpath.sed')
-rw-r--r--vpath.sed9
1 files changed, 9 insertions, 0 deletions
diff --git a/vpath.sed b/vpath.sed
new file mode 100644
index 00000000000..0eb98cc8298
--- /dev/null
+++ b/vpath.sed
@@ -0,0 +1,9 @@
+/^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 %.c $(srcdir)\
+vpath %.h $(srcdir)\
+\
+
+# arch-tag: 56a64b50-e4e8-443a-960f-f13af0f1a545