-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (31 loc) · 1 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
DOCKER := $(shell which docker)
DOCKERUN := $(DOCKER) run -it -v $(CURDIR):/python graze/tropopause
PYDIRS := setup.py examples tests tropopause
.PHONY: setup
setup: ## Create Docker container for development.
${DOCKER} build -t graze/tropopause:latest -f Dockerfile .
.PHONY: lint
lint: ## Run pycodestyle and pyflakes against the code.
@$(DOCKERUN) pycodestyle ${PYDIRS}
@$(DOCKERUN) pyflakes ${PYDIRS}
.PHONY: test
test: ## Run all tests and output coverage to the console.
@$(DOCKERUN) python setup.py test
.PHONY: build
build: ## Build the Library with setuptools.
@$(DOCKERUN) python setup.py build
.PHONY: install
install: ## Install the Library in the container.
@$(DOCKERUN) python setup.py install
.DEFAULT: all
.PHONY: all
all: ## Test, build & install the library.
all: test build install
.SILENT: help
.PHONY: help
help: ## Show this help message
set -x
echo "Usage: make [target] ..."
echo ""
echo "Available targets:"
egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#' | sort