forked from iopipe/lambda-runtime-pypy3.5
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (28 loc) · 1.14 KB
/
Makefile
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
44
SHELL=/bin/bash
PYPY_VERSIONS := pypy2.7-v7.3.0 pypy3.6-v7.3.0
all: clean build upload publish
BUILD_TARGETS := $(foreach pypy,$(PYPY_VERSIONS),$(pypy).zip)
UPLOAD_TARGETS := $(foreach pypy,$(PYPY_VERSIONS),upload-$(pypy))
PUBLISH_TARGETS := $(foreach pypy,$(PYPY_VERSIONS),publish-$(pypy))
PUBLICIZE_TARGETS := $(foreach pypy,$(PYPY_VERSIONS),publicize-$(pypy))
LATEST_TARGETS := $(foreach pypy,$(PYPY_VERSIONS),latest-$(pypy))
.PHONY: all clean build upload publish publicize latest $(UPLOAD_TARGETS) $(PUBLISH_TARGETS) $(PUBLICIZE_TARGETS) $(LATEST_TARGETS) shell
$(BUILD_TARGETS): %.zip:
PYPY_VERSION="$*" ./build.sh
$(UPLOAD_TARGETS): upload-%: %.zip
PYPY_VERSION="$*" ./upload.sh
$(PUBLISH_TARGETS): publish-%: %.zip
PYPY_VERSION="$*" ./publish.sh
$(PUBLICIZE_TARGETS): publicize-%: %.zip
PYPY_VERSION="$*" ./publish.sh -p
$(LATEST_TARGETS): latest-%:
PYPY_VERSION="$*" ./latest-layer-arns.sh
build: $(BUILD_TARGETS)
upload: $(UPLOAD_TARGETS)
publish: $(PUBLISH_TARGETS)
publicize: $(PUBLICIZE_TARGETS)
latest: $(LATEST_TARGETS)
clean:
rm -rf layer $(BUILD_TARGETS)
shell:
docker run --rm -v "${PWD}":/opt lambci/lambda:build-provided sh