diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-06 18:26:53 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-07 00:59:37 -0700 |
commit | 4d701f4f2ea99ac95bd4235adef1998f3abdc9f9 (patch) | |
tree | 6408d86364109765d0deb3692321ed7f3128ea05 /Makefile | |
parent | d559304babb24e4961ba13c554817730b46cfadc (diff) | |
download | chocula-4d701f4f2ea99ac95bd4235adef1998f3abdc9f9.tar.gz chocula-4d701f4f2ea99ac95bd4235adef1998f3abdc9f9.zip |
start a Makefile
Move all "index" functions into classes, each in a separate file.
Add lots of type annotations.
Use dataclass objects to hold database rows. This aspect will need
further refactoring to remove "extra" usage, probably by adding database
rows to align with DatabaseInfo more closely.
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 + |