diff --git a/Makefile b/Makefile index 6696430..b4a8e41 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,20 @@ ALL_DOCKERFILES := $(wildcard dockerfiles/Dockerfile-*) ALL_BUILD_TARGETS := $(subst dockerfiles/Dockerfile-,build-,$(ALL_DOCKERFILES)) build: $(ALL_BUILD_TARGETS) -rebuild: $(ALL_BUILD_TARGETS) +clean: # Discard existing volumes docker-compose down --volumes - make run run: # Runs containers in the foreground docker-compose up build-%: dockerfiles/Dockerfile-% @echo "" @echo "+----------------------------------------------------+" @printf '| %-50s |\n' "Building $(subst build-,,$@)" @echo "+----------------------------------------------------+" @echo "" docker build -f $< -t $(subst build-,,$@) $(BUILD_CONTEXT) ..