diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7d5ec24 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ + +.PHONY: help +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +.PHONY: test +test: ## Run all tests and lints + pipenv run pytest + pipenv run mypy *.py chocula/*.py --ignore-missing-imports + +.PHONY: build +build: src/*.rs src/bin/*.rs + cargo build --release + +.PHONY: install +install: + $(INSTALL) -t $(PREFIX)/bin target/release/einhyrningsins + $(INSTALL) -t $(PREFIX)/bin target/release/einhyrningsinsctl + # Trying to install manpages; ok if this fails + $(INSTALL) -m 644 -t $(PREFIX)/share/man/man1 doc/einhyrningsins.1 + $(INSTALL) -m 644 -t $(PREFIX)/share/man/man1 doc/einhyrningsinsctl.1 + |