Skip to content

Commit 5173fb5

Browse files
committed
Update Makefile commands for multiple versions
And drop 7.2 version, we'll only ship the 7.3 version.
1 parent 026e13b commit 5173fb5

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
php71.zip
2-
php72.zip
32
php73.zip

Makefile

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
22

3+
all: php71.zip php73.zip
4+
35
php71.zip:
46
docker run --rm -e http_proxy=${http_proxy} -v $(ROOT_DIR):/opt/layer lambci/lambda:build-nodejs8.10 /opt/layer/build.sh
57

6-
php72.zip:
7-
docker run --rm -e http_proxy=${http_proxy} -v $(ROOT_DIR):/opt/layer lambci/lambda:build-nodejs8.10 /opt/layer/build-php-remi.sh 2
8-
98
php73.zip:
109
docker run --rm -e http_proxy=${http_proxy} -v $(ROOT_DIR):/opt/layer lambci/lambda:build-nodejs8.10 /opt/layer/build-php-remi.sh 3
1110

12-
upload: php71.zip
13-
./upload.sh
11+
upload71: php71.zip
12+
./upload.sh 7.1
13+
14+
upload73: php73.zip
15+
./upload.sh 7.3
16+
17+
publish71: php71.zip
18+
./publish.sh 7.1
1419

15-
publish: php71.zip
16-
./publish.sh
20+
publish73: php73.zip
21+
./publish.sh 7.3
1722

1823
clean:
19-
rm -f php71.zip php72.zip php73.zip
24+
rm -f php71.zip php73.zip
2025

0 commit comments

Comments
 (0)