-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 705 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SHELL = /bin/bash
.SILENT:
# Do not print "Entering directory ..."
MAKEFLAGS += --no-print-directory
.PHONY: no_targets__ *
no_targets__:
.DEFAULT_GOAL := help
# Docker Compose detection
COMPOSE_BIN := $(shell \
if command -v docker >/dev/null 2>&1; then \
if docker compose version >/dev/null 2>&1; then \
echo "docker compose"; \
elif command -v docker-compose >/dev/null 2>&1; then \
echo "docker-compose"; \
else \
echo "echo 'Error: No Docker Compose found' && exit 1"; \
fi; \
else \
echo "echo 'Error: Docker not found' && exit 1"; \
fi)
COMPOSE_RUN := $(COMPOSE_BIN) run --rm node
# Includes
-include Make/*.mk
-include Make/**/*.mk
# Argument fix workaround
%:
@: