-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (51 loc) · 1.46 KB
/
Makefile
File metadata and controls
56 lines (51 loc) · 1.46 KB
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
48
49
50
51
52
53
54
55
56
#
#
# Copyright 2020- IBM Inc. All rights reserved
# SPDX-License-Identifier: Apache2.0
#
.PHONY: clean
clean: ## clean project
clean:
-rm -rf ./tests/controlblocks
-rm -rf ./tests/jzon
-rm -rf ./tests/zml
-rm -rf ./dist
-rm -rf ./build
-rm -rf *.egg-info
-rm -rf ./pysvc/__py_cache__
-rm -rf ./tests/__py_cache__
.PHONY: build
build: ## build project
build: clean install-dev
pipenv run python setup.py sdist bdist_wheel
.PHONY: help
help: ## display helpful information
help:
@IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/' | sort`); \
printf "$(COLOR1)Usage:$(COLOR0)\n"; \
printf " make [$(COLOR2)target$(COLOR0)]\n\n"; \
printf "$(COLOR1)Targets:$(COLOR0)\n"; \
for help_line in $${help_lines[@]}; do \
IFS=$$':' ; \
help_split=($$help_line) ; \
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
printf " $(COLOR2)%-30s$(COLOR0) %s\n" $$help_command $$help_info ; \
done
.PHONY: install
install: ## install dependencies for local development
install:
pip install -U setuptools
pip install -e ".[dev]"
pip install -r requirements.txt
.PHONY: pipenv-install
pipenv-install: ## install dependencies for local development through Pipenv
pipenv install --dev
pipenv lock
pipenv run pipenv-setup sync --dev
.PHONY: test
test: ## test and lint code
test:
./tests/test.sh
flake8 ./cbexplorer