summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2017-03-05 09:02:28 -0800
committerJim Meyering <meyering@fb.com>2017-03-05 09:51:26 -0800
commitdff64f9ededbea38f573e06967e85f15a1c46e4a (patch)
tree84cfd7b27a81a38df90372916fe8075e12c02696 /cfg.mk
parent70032889a81f2dd391e5053dadb9b697e94107b6 (diff)
downloadgrep-dff64f9ededbea38f573e06967e85f15a1c46e4a.tar.gz
build: use $(builddir), not $(srcdir)
* cfg.mk (PATH): Use $(builddir), so this also takes effect in a non-srcdir build. Also, switch ${PATH} syntax to $(PATH).
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 52ed500c..c39e75bd 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -17,7 +17,7 @@
# Cause the tool(s) built by this package to be used also when running
# commands via e.g., "make syntax-check". Doing this a little sooner
# would have avoided a grep infloop bug.
-export PATH := $(srcdir)/src$(PATH_SEPARATOR)${PATH}
+export PATH := $(builddir)/src$(PATH_SEPARATOR)$(PATH)
# Used in maint.mk's web-manual rule
manual_title = GNU Grep: Print lines matching a pattern