mirror of https://github.com/PiyushXCoder/lupt.git
12 lines
432 B
Makefile
12 lines
432 B
Makefile
.PHONY: build deploy
|
|
|
|
help: ## Show 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)
|
|
|
|
build: ## Build static binary and put it in the functions directory.
|
|
@cargo build --release
|
|
@mkdir -p functions
|
|
@cp target/release/lupt functions
|
|
|
|
deploy: build ## Deploy the site using Netlify's CLI
|
|
@netlify deploy --prod
|