forked from pybind/python_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (34 loc) · 661 Bytes
/
Makefile
File metadata and controls
41 lines (34 loc) · 661 Bytes
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
SHELL=/bin/sh
.SILENT:
.IGNORE:
.PHONY: all
all: clean dev test
.PHONY: dev
dev: build
pipenv install -e .
.PHONY: help
help:
echo
echo 'Utility Makefile
echo '================
echo
echo 'Targets supported are:'
echo
echo ' * clean: remove all build artefacts'
echo ' * build: builds the Python package'
echo ' * install: builds and installs into pipenv environment'
echo ' * test: runs unit tests'
echo ' * help: display help message'
.PHONY: build
build:
pipenv run python setup.py bdist bdist_wheel
rm -rf tmp/
.PHONY: clean
clean:
echo Cleaning ...
rm -rf build/
rm -rf tmp/
echo ... done
.PHONY: test
test:
pytest ./tests