diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-03-04 16:23:33 +0000 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2019-03-04 16:23:33 +0000 |
commit | 3b7fe43f564361a5075b8364779cd6f6dede39b1 (patch) | |
tree | 75475792f72f5c2b7d4386c8bf8a0e16724be9b6 /requirements | |
parent | 36171a07aebc847cfbef9847189d748cdceb751e (diff) | |
download | buildstream-3b7fe43f564361a5075b8364779cd6f6dede39b1.tar.gz |
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.
Diffstat (limited to 'requirements')
-rw-r--r-- | requirements/Makefile | 6 |
1 files 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: |