-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 653 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (33 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.DEFAULT_GOAL := vendor
SHELL := bash
php74 = docker compose run --rm php74
php83 = docker compose run --rm php83
vendor: build
@$(php74) composer install
.PHONY: build
build:
@docker compose build --pull
.PHONY: clear
clear:
@git reset --hard
@git clean -df
.PHONY: reset
reset: clear
@$(php74) composer install
.PHONY: restart
restart: clear
@git checkout main
@rm -rf vendor
@$(php74) composer install
.PHONY: php74
php74:
@$(php74) bash
.PHONY: php83
php83:
@$(php83) bash
.PHONY: lint74
lint74:
@$(php74) vendor/bin/parallel-lint --exclude vendor .
.PHONY: lint83
lint83:
@$(php83) vendor/bin/parallel-lint --exclude vendor .