Skip to content

Commit

Permalink
Using suggestion from pr review with some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoukoVirtanen committed Oct 3, 2023
1 parent 4aa1311 commit 8551b3b
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions integration-tests/container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ include Makefile-constants.mk

SHELL := /bin/bash

.PHONY: build-all
build-all:
@set -eou pipefail; \
mapfile -t container_dirs < <(ls -d */); \
for container_dir in "$${container_dirs[@]}"; do \
make -C "$$container_dir" build; \
done
TARGETS := build build-and-push
DIRS := $(wildcard ./*/)

.PHONY: build-and-push-all
build-and-push-all:
@set -eou pipefail; \
mapfile -t container_dirs < <(ls -d */); \
for container_dir in "$${container_dirs[@]}"; do \
make -C "$$container_dir" build-and-push; \
done
$(TARGETS): $(DIRS)
$(DIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)

.PHONY: $(TARGETS) $(DIRS)

0 comments on commit 8551b3b

Please sign in to comment.