-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
12 lines (10 loc) · 848 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
include docker.mk
.PHONY: php71 php72 php74 php80
php71:
docker exec -ti -e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) $(shell docker ps --filter name='^$(PROJECT_NAME)_php_7_1$$' --format "{{ .ID }}") $(filter-out $@,$(MAKECMDGOALS))
php72:
docker exec -ti -e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) $(shell docker ps --filter name='^$(PROJECT_NAME)_php_7_2$$' --format "{{ .ID }}") $(filter-out $@,$(MAKECMDGOALS))
php74:
docker exec -ti -e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) $(shell docker ps --filter name='^$(PROJECT_NAME)_php_7_4$$' --format "{{ .ID }}") $(filter-out $@,$(MAKECMDGOALS))
php80:
docker exec -ti -e COLUMNS=$(shell tput cols) -e LINES=$(shell tput lines) $(shell docker ps --filter name='^$(PROJECT_NAME)_php_8_0$$' --format "{{ .ID }}") $(filter-out $@,$(MAKECMDGOALS))