From 0a90281155cb9bafffc0f0f463d66c612f9d023b Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 29 Jul 2023 19:20:32 +0200 Subject: [PATCH] Makefile.boilerplate: Don't touch pip when updating it, only on create The upgrade set is potentially executed lather than other targets depending on pip, so fiddling with its timestamps results in those targets being rebuild over and over again. And let touch(1) never create files! --- Makefile.boilerplate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.boilerplate b/Makefile.boilerplate index 2342c2b..646b7cc 100644 --- a/Makefile.boilerplate +++ b/Makefile.boilerplate @@ -37,14 +37,14 @@ distclean-ansible: $(VENV_BIN)/ansible $(VENV_BIN)/ansible-galaxy $(VENV_BIN)/ansible-lint venv: $(SOURCE_ROOT)/requirements.txt $(VENV_BIN)/pip # Install/upgrade Python package manager "$(VENV_BIN)"/pip install --upgrade pip wheel - touch "$(VENV_BIN)/pip" "$(VENV_BIN)/wheel" # Install/upgrade Python dependencies ... "$(VENV_BIN)"/pip install --upgrade --requirement $(SOURCE_ROOT)/requirements.txt - touch "$(VENV_BIN)/ansible" "$(VENV_BIN)/ansible-galaxy" "$(VENV_BIN)/ansible-lint" + touch -c "$(VENV_BIN)/ansible" "$(VENV_BIN)/ansible-galaxy" "$(VENV_BIN)/ansible-lint" $(VENV_BIN)/pip: # Create/upgrade Python "virtual environment" "$(PYTHON)" -m venv "$(SOURCE_ROOT)"/.venv + touch -c "$(VENV_BIN)/pip" .PHONY: venv -- 2.39.2