aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7ae4ef945938c78e50716822c6cada0632ee4d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 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