forked from gaffneyc/heroku-buildpack-jemalloc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (41 loc) · 1.75 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
default: cedar-14 heroku-16 heroku-18
VERSION := 5.2.0
ROOT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
clean:
rm -rf src/ dist/
# 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
# 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 recent releases for all supported stacks
all:
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=3.6.0
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=4.0.4
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=4.1.1
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=4.2.1
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=4.3.1
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=4.4.0
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=4.5.0
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=5.0.1
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=5.1.0
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=5.2.0
$(MAKE) cedar-14 heroku-16 heroku-18 VERSION=5.2.1