forked from thombashi/allpairspy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (38 loc) · 779 Bytes
/
Makefile
File metadata and controls
46 lines (38 loc) · 779 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
42
43
44
45
46
OWNER := thombashi
PACKAGE := allpairspy
BUILD_WORK_DIR := _work
DIST_DIR := $(BUILD_WORK_DIR)/$(PACKAGE)/dist
PKG_BUILD_DIR := $(BUILD_WORK_DIR)/$(PACKAGE)
.PHONY: build
build:
@make clean
@tox -e build
ls -lh dist/*
.PHONY: build-remote
build-remote:
build-remote:
@rm -rf $(BUILD_WORK_DIR)
@mkdir -p $(BUILD_WORK_DIR)
@cd $(BUILD_WORK_DIR) && \
git clone https://github.com/$(OWNER)/$(PACKAGE).git && \
cd $(PACKAGE) && \
tox -e build
ls -lh $(PKG_BUILD_DIR)/dist/*
.PHONY: check
check:
@tox -e lint
travis lint
.PHONY: clean
clean:
@tox -e clean
.PHONY: fmt
fmt:
tox -e fmt
.PHONY: release
release:
@cd $(PKG_BUILD_DIR) && python setup.py release --sign
@make clean
.PHONY: setup
setup:
@pip install --upgrade -e .[test] releasecmd tox
pip check