-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
33 lines (26 loc) · 1.35 KB
/
Makefile
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
BOLD := \033[1m
RESET := \033[0m
GREEN := \033[1;32m
# -- Docker
DOCKER_UID = $(shell id -u)
DOCKER_GID = $(shell id -g)
DOCKER_USER = $(DOCKER_UID):$(DOCKER_GID)
# ==============================================================================
# RULES
default: h
build: ## Build peertube-runner image
docker buildx build --build-arg DOCKER_USER=$(DOCKER_USER) --target runner -t peertube-runner:latest .
.PHONY:build
build-whisper_ctranslate2: ## Build peertube-runner image with whisper-ctranslate2
docker buildx build --build-arg DOCKER_USER=$(DOCKER_USER) --target whisper_ctranslate2 -t peertube-runner:latest-whisper_ctranslate2 .
.PHONY:build-whisper_ctranslate2
h: # short default help task
@echo "$(BOLD)Marsha Makefile$(RESET)"
@echo "Please use 'make $(BOLD)target$(RESET)' where $(BOLD)target$(RESET) is one of:"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(GREEN)%-50s$(RESET) %s\n", $$1, $$2}'
.PHONY: h
help: ## Show a more readable help on multiple lines
@echo "$(BOLD)Marsha Makefile$(RESET)"
@echo "Please use 'make $(BOLD)target$(RESET)' where $(BOLD)target$(RESET) is one of:"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(GREEN)%s$(RESET)\n %s\n\n", $$1, $$2}'
.PHONY: help