Makefile 1.11 KB
Newer Older
1
all: base-8-stamp base-9-stamp dune-2.3-stamp dune-2.4-stamp dune-fufem-stamp dune-fufem-latest-stamp dune-latest-stamp
Ansgar Burchardt's avatar
Ansgar Burchardt committed
2 3 4 5

clean:
	rm -f -- ./*-stamp

Ansgar Burchardt's avatar
Ansgar Burchardt committed
6
base-8-stamp: base-8/Dockerfile
Ansgar Burchardt's avatar
Ansgar Burchardt committed
7
	docker build --no-cache -t duneci/base:8 base-8
Ansgar Burchardt's avatar
Ansgar Burchardt committed
8 9 10
	touch $@

base-9-stamp: base-9/Dockerfile
Ansgar Burchardt's avatar
Ansgar Burchardt committed
11
	docker build --no-cache -t duneci/base:9 base-9
Ansgar Burchardt's avatar
Ansgar Burchardt committed
12 13 14
	touch $@

dune-2.3-stamp: base-8-stamp dune-2.3/Dockerfile
15
	docker build -t duneci/dune:2.3 dune-2.3
Ansgar Burchardt's avatar
Ansgar Burchardt committed
16 17
	touch $@

Ansgar Burchardt's avatar
Ansgar Burchardt committed
18
dune-2.4-stamp: base-9-stamp dune-2.4/Dockerfile
19
	docker build -t duneci/dune:2.4 dune-2.4
Ansgar Burchardt's avatar
Ansgar Burchardt committed
20 21 22
	touch $@

dune-fufem-stamp: dune-fufem/Dockerfile dune-2.4-stamp
Ansgar Burchardt's avatar
Ansgar Burchardt committed
23
	docker build -t duneci/dune-fufem:2.4 dune-fufem
Ansgar Burchardt's avatar
Ansgar Burchardt committed
24 25
	touch $@

Ansgar Burchardt's avatar
Ansgar Burchardt committed
26
dune-git-stamp: base-9-stamp dune-git/Dockerfile
Ansgar Burchardt's avatar
Ansgar Burchardt committed
27
	docker build --no-cache -t duneci/dune:git-staging dune-git
Ansgar Burchardt's avatar
Ansgar Burchardt committed
28
	#docker run -i duneci/dune:git-staging sh -c "dunecontrol make build_tests && dunecontrol make test"
Ansgar Burchardt's avatar
Ansgar Burchardt committed
29 30 31
	docker tag -f duneci/dune:git-staging duneci/dune:git
	touch $@

Ansgar Burchardt's avatar
Ansgar Burchardt committed
32
dune-latest-stamp: dune-2.4-stamp
Ansgar Burchardt's avatar
Ansgar Burchardt committed
33
	docker tag -f duneci/dune:2.4 duneci/dune:latest
Ansgar Burchardt's avatar
Ansgar Burchardt committed
34
	touch $@
35 36 37 38

dune-fufem-latest-stamp: dune-fufem-stamp
	docker tag -f duneci/dune-fufem:2.4 duneci/dune-fufem:latest
	touch $@