From 3b7fe43f564361a5075b8364779cd6f6dede39b1 Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Mon, 4 Mar 2019 16:23:33 +0000 Subject: requirements/Makefile: Always rebuild requirements files We always want to update all the requirements files together such that the versions of the common dependencies do not drift between them. Do so by adding a dummy phony target `FORCE` and depend on it from all the `.txt` targets. --- requirements/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements/Makefile b/requirements/Makefile index 0f4d885fa..69b6c7432 100644 --- a/requirements/Makefile +++ b/requirements/Makefile @@ -9,13 +9,15 @@ VENV := $(PYTHON) -m venv VENV_PIP = $(VENVDIR)/bin/pip -.PHONY: all +.PHONY: all FORCE all: $(REQUIREMENTS_TXT) -%.txt: %.in +%.txt: %.in FORCE $(eval VENVDIR := $(shell mktemp -d $(CURDIR)/.bst-venv.XXXXXX)) $(VENV) $(VENVDIR) $(VENV_PIP) install -r $^ $(VENV_PIP) freeze -r $^ | grep -v pkg-resources > $@ rm -rf $(VENVDIR) + +FORCE: -- cgit v1.2.1