forked from gaffneyc/heroku-buildpack-jemalloc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (57 loc) · 2.45 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default: cedar-14 heroku-16 heroku-18
VERSION := 5.2.0
ROOT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
clean:
rm -rf src/ dist/
console:
@echo "Console Help"
@echo
@echo "Specify a verion to install:"
@echo " echo 5.2.1 > /env/JEMALLOC_VERSION"
@echo
@echo "To vendor jemalloc:"
@echo " bin/compile /app/ /cache/ /env/"
@echo
@docker run --rm -ti -v $(shell pwd):/buildpack -e "STACK=heroku-18" -w /buildpack heroku/heroku:18-build \
bash -c 'mkdir /app /cache /env; exec bash'
# Download missing source archives to ./src/
src/jemalloc-%.tar.bz2:
mkdir -p $$(dirname $@)
curl -fsL https://github.com/jemalloc/jemalloc/releases/download/$*/jemalloc-$*.tar.bz2 -o $@
.PHONY: cedar-14 heroku-16 heroku-18 docker\:pull
# Updates the docker image to ensure we're building with the latest
# environment.
docker\:pull:
docker pull heroku/cedar:14
docker pull heroku/heroku:16-build
docker pull heroku/heroku:18-build
docker pull heroku/heroku:20-build
# Build for cedar-14 stack
cedar-14: src/jemalloc-$(VERSION).tar.bz2 docker\:pull
docker run --rm -it --volume="$(ROOT_DIR):/wrk" \
heroku/cedar:14 /wrk/build.sh $(VERSION) cedar-14
# Build for heroku-16 stack
heroku-16: src/jemalloc-$(VERSION).tar.bz2 docker\:pull
docker run --rm -it --volume="$(ROOT_DIR):/wrk" \
heroku/heroku:16-build /wrk/build.sh $(VERSION) heroku-16
# Build for heroku-18 stack
heroku-18: src/jemalloc-$(VERSION).tar.bz2 docker\:pull
docker run --rm -it --volume="$(ROOT_DIR):/wrk" \
heroku/heroku:18-build /wrk/build.sh $(VERSION) heroku-18
# Build for heroku-20 stack
heroku-20: src/jemalloc-$(VERSION).tar.bz2 docker\:pull
docker run --rm -it --volume="$(ROOT_DIR):/wrk" \
heroku/heroku:20-build /wrk/build.sh $(VERSION) heroku-20
# Build recent releases for all supported stacks
all:
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=3.6.0
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=4.0.4
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=4.1.1
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=4.2.1
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=4.3.1
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=4.4.0
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=4.5.0
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=5.0.1
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=5.1.0
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=5.2.0
$(MAKE) cedar-14 heroku-16 heroku-18 heroku-20 VERSION=5.2.1