-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMakefile
43 lines (35 loc) · 917 Bytes
/
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
# --------------------------------------------------
# standard Makefile preamble
# see https://tech.davis-hansson.com/p/make/
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error Your Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
endif
.RECIPEPREFIX = >
# --------------------------------------------------
build: .build-sentinel
clean:
> rm -rf build
> rm -rf dist
> rm -f .build-sentinel
.PHONY: clean
test:
> pytest tests/
.PHONY: test
push: test build
> twine check dist/*
> twine upload dist/*
.PHONY: push
version:
> npx standard-version
.PHONY: version
.build-sentinel: $(shell find matsim/*.py) $(shell find docs/*) README.md setup.py VERSION
> rm -rf dist
> python3 setup.py sdist bdist_wheel
> twine check dist/*
> touch $@