forked from mojodna/heroku-buildpack-jemalloc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 1 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
default: cedar-14
cedar-14: dist/cedar-14/jemalloc-4.2.1-1.tar.gz
dist/cedar-14/jemalloc-4.2.1-1.tar.gz: jemalloc-cedar-14
docker cp $<:/tmp/jemalloc-cedar-14.tar.gz .
mkdir -p $$(dirname $@)
mv jemalloc-cedar-14.tar.gz $@
clean:
rm -rf src/ cedar*/*.sh dist/ jemalloc-cedar*/*.tar.*
-docker rm jemalloc-cedar-14
src/jemalloc.tar.bz2:
mkdir -p $$(dirname $@)
curl -sL https://github.com/jemalloc/jemalloc/releases/download/4.2.1/jemalloc-4.2.1.tar.bz2 -o $@
.PHONY: cedar-14-stack
cedar-14-stack: cedar-14-stack/cedar-14.sh
@(docker images -q mojodna/$@ | wc -l | grep 1 > /dev/null) || \
docker build --rm -t mojodna/$@ $@
cedar-14-stack/cedar-14.sh:
curl -sLR https://raw.githubusercontent.com/heroku/stack-images/master/bin/cedar-14.sh -o $@
.PHONY: jemalloc-cedar-14
jemalloc-cedar-14: cedar-14-stack jemalloc-cedar-14/jemalloc.tar.bz2
docker build --rm -t mojodna/$@ $@
-docker rm $@
docker run --name $@ mojodna/$@ /bin/echo $@
jemalloc-cedar-14/jemalloc.tar.bz2: src/jemalloc.tar.bz2
ln -f $< $@