]> arthur.barton.de Git - bup.git/blobdiff - GNUmakefile
Ensure "bup" invocations fail for all make targets
[bup.git] / GNUmakefile
index 48725d2f5413659dad5d374f1ac6d0f558697d41..49d0c78d6f671b8ccdd3028e7649f6dbe6fdfdf9 100644 (file)
@@ -4,6 +4,9 @@ MAKEFLAGS += --warn-undefined-variables
 SHELL := bash
 .DEFAULT_GOAL := all
 
+# Guard against accidentally using/testing a local bup
+export PATH := $(CURDIR)/dev/shadow-bin:$(PATH)
+
 clean_paths :=
 generated_dependencies :=
 
@@ -208,6 +211,7 @@ lint: dev/bup-exec dev/bup-python
        ./pylint
 
 test: all test/tmp dev/python lint
+       ! bup version  # Ensure we can't test the local bup (cf. dev/shadow-bin)
        ./bup features
        if test yes = "$$(dev/python -c 'import xdist; print("yes")' 2>/dev/null)"; then \
           (set -x; ./pytest $(xdist_opt);) \