aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 34a4f69fef08275c490c84531577ea9fdd88fa88 (plain)
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
DOCKERFILES_SRC:=template/Dockerfile

DOCKERFILES:= \
	19/Dockerfile \
	19/onbuild/Dockerfile \
	19/development/Dockerfile \
	19/alpine/Dockerfile \
	19/alpine/onbuild/Dockerfile \
	19/alpine/development/Dockerfile \
	20/Dockerfile \
	20/onbuild/Dockerfile \
	20/development/Dockerfile \
	20/alpine/Dockerfile \
	20/alpine/onbuild/Dockerfile \
	20/alpine/development/Dockerfile \

.PHONY: all
all: ${DOCKERFILES}

$(DOCKERFILES): template/Dockerfile 19/options 20/options
	mkdir -p $(@D)
	bash template/generate.sh $(shell echo $@ | cut -d '/' -f1)/options $< > $@

.PHONY: clean
clean:
	-rm $(DOCKERFILES)