17 lines
421 B
Makefile
17 lines
421 B
Makefile
define INC_DOCKER =
|
|
1
|
|
endef
|
|
$(info Defined INC_DOCKER)
|
|
|
|
include /devel/docker/docker_vars.sh
|
|
export
|
|
|
|
${docker_src}/built/%.sentinel: ${docker_src}/%.dockerfile
|
|
grep -e '^FROM' "$*".dockerfile | awk '{print $$2}' \
|
|
| tr : _ | xargs -I{} $(MAKE) ${docker_src}/built/{}.sentinel;
|
|
cd ${docker_src}; docker build -f $< --tag $* .;
|
|
touch $@;
|
|
|
|
${docker_src}/built/debian_10.sentinel:
|
|
docker pull "debian:10" && touch $@;
|