2018-08-21 07:08:51 +00:00
|
|
|
|
|
|
|
GOFILES=$(wildcard *.go)
|
2020-01-25 17:55:53 +00:00
|
|
|
NAME=musala-push
|
2018-08-21 07:08:51 +00:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build: ## build executable
|
|
|
|
go build ./...
|
|
|
|
|
|
|
|
install: ## install binaries
|
|
|
|
go install ./...
|
|
|
|
|
|
|
|
.PHONY: shellcheck
|
|
|
|
shellcheck: ## run shellcheck validation
|
|
|
|
scripts/validate/shellcheck
|
|
|
|
|
|
|
|
.PHONY: help
|
|
|
|
help: ## print this help
|
|
|
|
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: ## remove build artifacts
|
|
|
|
rm -rf ./_build/*
|
|
|
|
|
|
|
|
test: build
|
|
|
|
./test.sh
|
2020-12-06 22:52:08 +00:00
|
|
|
|
|
|
|
npm:
|
|
|
|
npm install
|
|
|
|
|
|
|
|
|
|
|
|
MJML_TEMPLATES=$(wildcard templates/*.mjml)
|
|
|
|
MJML_OUTPUT=$(patsubst %.mjml,%.mjml.html,$(MJML_TEMPLATES))
|
|
|
|
|
|
|
|
%.mjml.html: %.mjml
|
|
|
|
npx mjml $< --config.minify > $@
|
|
|
|
|
|
|
|
templates: $(MJML_OUTPUT)
|
|
|
|
|
|
|
|
.PHONY: templates
|
|
|
|
|