forked from papis/papis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
all: help
help: ## Show this help
@echo -e "Specify a command. The choices are:\n"
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-18s\033[m %s\n", $$1, $$2}'
@echo ""
.PHONY: help
shell_completion: ## Generate shell completion scripts
make -C scripts/shell_completion
.PHONY: shell_completion
update-authors: ## Generate AUTHORS file from git commits
git shortlog -s -e -n | \
sed -e "s/\t/ /" | \
sed -e "s/^\s*//" > \
AUTHORS
.PHONY: update-authors
tags: ## Generate ctags for main codebase
ctags -f tags \
--recurse=yes \
--tag-relative=yes \
--fields=+l \
--kinds-python=-i \
--language-force=python \
papis
.PHONY: tags
doc: ## Generate the documentation in doc/
cd doc && make html SPHINXOPTS="-W --keep-going -n"
@echo ""
@echo -e "\e[1;32mRun '$$BROWSER doc/build/html/index.html' to see the docs\e[0m"
@echo ""
.PHONY: doc
test: ## Run pytest test and doctests
python -m pytest -rswx --cov=papis -v -s papis tests
.PHONY: test
ci-install: ## Install dependencies like on the CI
bash tools/ci-install.sh
.PHONY: ci-install
ci-test: ## Run tests like on the CI
bash tools/ci-run-tests.sh
.PHONY: ci-test