From c6d518c66fc0774206ec439adfb6cc375913e2a4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 4 Jul 2019 18:38:20 -0400 Subject: Makefile: Use $(CURDIR)/bfs instead of $(realpath bfs) $(realpath bfs) gives the empty string if bfs doesn't exist when it's evaluated. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5619aad..63ac559 100644 --- a/Makefile +++ b/Makefile @@ -99,9 +99,9 @@ tests/mksock: tests/mksock.o $(CC) $(ALL_CFLAGS) -c $< -o $@ check: all - ./tests.sh --bfs="$(realpath bfs)" - ./tests.sh --bfs="$(realpath bfs) -S dfs" - ./tests.sh --bfs="$(realpath bfs) -S ids" + ./tests.sh --bfs="$(CURDIR)/bfs" + ./tests.sh --bfs="$(CURDIR)/bfs -S dfs" + ./tests.sh --bfs="$(CURDIR)/bfs -S ids" distcheck: +$(MAKE) -Bs check CFLAGS="$(CFLAGS) -fsanitize=undefined -fsanitize=address" @@ -112,9 +112,9 @@ endif +$(MAKE) -Bs release check +$(MAKE) -Bs check ifeq ($(OS),Linux) - ./tests.sh --sudo --bfs="$(realpath bfs)" - ./tests.sh --sudo --bfs="$(realpath bfs) -S dfs" - ./tests.sh --sudo --bfs="$(realpath bfs) -S ids" + ./tests.sh --sudo --bfs="$(CURDIR)/bfs" + ./tests.sh --sudo --bfs="$(CURDIR)/bfs -S dfs" + ./tests.sh --sudo --bfs="$(CURDIR)/bfs -S ids" endif clean: -- cgit v1.2.3