-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
15 lines (13 loc) · 896 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# It's necessary to set this because some environments don't link sh -> bash.
SHELL := /usr/bin/env bash
.PHONY: ci
ci:
# searches for all Makefile files from the root directory and runs the make ci target on each entry
# excludes the node_modules folder and root Makefile
find . -type f -name "Makefile" -not -path "./Makefile" -not -path "*/node_modules/*" -exec dirname {} \; | xargs -I {} make --directory={} ci
.PHONY: publish_docker_images
publish_docker_images:
# searches for all Dockerfiles from the root directory and runs the Make publish_docker_images target on each entry
# exclude the node_modules folders
find ./frontend -type f -name "Dockerfile" -not -path "*/node_modules/*" -exec dirname {} \; | xargs -I {} make --directory={} publish_docker_images
find ./backend -type f -name "Dockerfile" -exec dirname {} \; | xargs -I {} make --directory={} publish_docker_images