Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add makefile #54

Open
gofenix opened this issue Apr 23, 2022 · 0 comments
Open

Add makefile #54

gofenix opened this issue Apr 23, 2022 · 0 comments

Comments

@gofenix
Copy link

gofenix commented Apr 23, 2022

we can add a makefile in this project like this:

.PHONY: help
help:
	@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: build
build: ## Build the zine
	cargo build --release -vv

.PHONY: install
install: ## Build the zine and place it on PATH
	cargo install --path . --force --locked -vv

the install command is very useful when develop in local.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant