summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-07-04 18:38:20 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-07-04 18:38:20 -0400
commitc6d518c66fc0774206ec439adfb6cc375913e2a4 (patch)
tree30fdab13b6b674c7e89fbb54d90235d5e341a742
parent4943d663ced75520361acdf26e31bef80c4aaa85 (diff)
downloadbfs-c6d518c66fc0774206ec439adfb6cc375913e2a4.tar.xz
Makefile: Use $(CURDIR)/bfs instead of $(realpath bfs)
$(realpath bfs) gives the empty string if bfs doesn't exist when it's evaluated.
-rw-r--r--Makefile12
1 files 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: