-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
36 lines (25 loc) · 822 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
MAJOR ?= 1
MINOR ?= 3
PATCH ?= ${PATCH}
PACKAGE := mmCif
SHELL := /bin/sh
PY_VERSION := 2.7
export PYTHONUNBUFFERED := 1
BASE := $(shell /bin/pwd)
SOURCE := $(BASE)/src
PYTHON := $(shell /usr/bin/which python$(PY_VERSION))
SEDI = sed -i.bak
.PHONY: build clean release describe deploy package bundle bundle.local
version:
$(SEDI) "s/[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*/$(MAJOR).$(MINOR).$(PATCH)/g" $(SOURCE)/$(PACKAGE)/__init__.py
rm -f $(SOURCE)/$(PACKAGE)/__init__.py.bak
$(SEDI) "s/[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*/$(MAJOR).$(MINOR).$(PATCH)/g" $(BASE)/setup.py
rm -f $(BASE)/setup.py.bak
cover:
tox -r --skip-missing-interpreters -c toxcov.ini
test:
tox --skip-missing-interpreters -r
clean:
$(shell cat .gitignore | xargs rm -rf)
package:
$(PYTHON) setup.py sdist bdist_wheel