File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11VENV ?= .venv
2+ VENV_STAMP := $(VENV ) /.stamp
23PYTHON := $(VENV ) /bin/python
34PIP := $(VENV ) /bin/pip
45ANSIBLE_PLAYBOOK := $(VENV ) /bin/ansible-playbook
@@ -47,9 +48,9 @@ $(TF_SUBDIR)/.terraform: $(TF_SUBDIR)/provider.tf
4748 @$(TF ) -chdir=$(TF_SUBDIR ) init
4849 touch $(TF_SUBDIR ) /.terraform
4950
50- venv : $(VENV )
51+ venv : $(VENV_STAMP )
5152
52- $(VENV ) : $(PYTHON_REQS_FILE ) $(ANSIBLE_REQS_FILE )
53+ $(VENV_STAMP ) : $(PYTHON_REQS_FILE ) $(ANSIBLE_REQS_FILE )
5354 @python3 -m venv $(VENV )
5455 @$(PIP ) install --upgrade pip
5556 @$(PIP ) install -r $(PYTHON_REQS_FILE )
@@ -59,7 +60,7 @@ $(VENV): $(PYTHON_REQS_FILE) $(ANSIBLE_REQS_FILE)
5960 echo " Installing Ansible Galaxy collections..." ; \
6061 $(GIT_SILENCE_DETACHED ) $(ANSIBLE_GALAXY ) collection install -r $(ANSIBLE_REQS_FILE ) ; \
6162 fi
62- touch $( VENV )
63+ touch $@
6364
6465lint : venv init
6566 @echo " Running terraform fmt check..."
You can’t perform that action at this time.
0 commit comments