Skip to content

Commit 2f79ae0

Browse files
committed
add makefile
Signed-off-by: Romain Gautier <[email protected]>
1 parent 86f373e commit 2f79ae0

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
.deps
55
.libs
66
Dockerfile.tmp
7-
Makefile
87
Makefile.fragments
98
Makefile.global
109
Makefile.objects

Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
SHELL := bash
2+
MAKEFLAGS += --no-builtin-rules
3+
.PHONY: help
4+
5+
# use local source code here
6+
BAKE = docker buildx bake --set main.contexts.php-v8js-source-code=.
7+
8+
help:
9+
@grep -E '(^[a-zA-Z0-9\./_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
10+
11+
build: php84 ## Build the project on latest PHP version
12+
13+
matrix: ## Build the project on each actively maintained PHP version
14+
make -j4 build-matrix
15+
16+
build-matrix: php84 php83 php82 php81
17+
18+
php84:
19+
PHP_VERSION=8.4 $(BAKE)
20+
21+
php83:
22+
PHP_VERSION=8.3 $(BAKE)
23+
24+
php82:
25+
PHP_VERSION=8.2 $(BAKE)
26+
27+
php81:
28+
PHP_VERSION=8.1 $(BAKE)
29+
30+
clean:
31+
rm -rf tests-docker-output

0 commit comments

Comments
 (0)