-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
31 lines (25 loc) · 794 Bytes
/
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
# If SHELL is sh change it to bash
ifeq ($(SHELL),/bin/sh)
SHELL := /bin/bash
endif
export REPO_ROOT := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
ifeq ($(SHELLCHECK_VERSION),)
SHELLCHECK_VERSION := v0.10.0
endif
# Set default goal to help
.DEFAULT_GOAL := help
.PHONY: help
help: ## Show this message
@printf "%-20s %s\n" "Target" "Help"
@printf "%-20s %s\n" "-----" "-----"
@grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: docker
docker: ## Build docker image
DOCKER_BUILDKIT=1 docker build \
--tag ghcr.io/tprasadtp/protonwire:dev \
$(REPO_ROOT)
.PHONY: clean
clean: ## clean
rm -rf $(REPO_ROOT)/dist/
rm -rf $(REPO_ROOT)/build/
rm -rf $(REPO_ROOT)/metadata/