From 87282daef8ef99557a1a6e76d3e1e19c14c982de Mon Sep 17 00:00:00 2001 From: Andreas Tolfsen <andretol@usit.uio.no> Date: Thu, 15 Jul 2021 14:11:22 +0200 Subject: [PATCH] build: set default target to test A Makefile's default target is either the one defined by "all", or in the absence of an "all" target, the first target found in the file. This means the current default target is to clean the venv from disk. This patch makes calling make non-destructive by redefining the default target to run the tests. We may want to change this in future to something more appropriate. Fixes: GREG-13 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 536380d4..d9f977c6 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ pip = python -m $(PIP) poetry = python -m $(POETRY) venv = . $(VENV)/bin/activate && +all: test + .PHONY: clean clean: $(RM) -r $(VENV) -- GitLab