aboutsummaryrefslogtreecommitdiff
path: root/docker/Makefile
blob: 8c939cbabafe75a8ba93de7ea5640b87038f45fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
OBJECTS := $(shell find ./ -mindepth 2 -name 'Dockerfile*')

all: $(OBJECTS)

%/Dockerfile: Dockerfile.j2 render_template
	./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"

%/Dockerfile.alpine: Dockerfile.j2 render_template
	./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"

%/Dockerfile.buildx: Dockerfile.j2 render_template
	./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"

%/Dockerfile.buildx.alpine: Dockerfile.j2 render_template
	./render_template "$<" "{\"target_file\":\"$@\"}" > "$@"