Skip to content

Commit 505543b

Browse files
committed
Fix makefile wheel target
1 parent 085610c commit 505543b

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

Makefile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!make
12

23
VENV=venv
34
PYTHON=$(VENV)/bin/python
@@ -8,6 +9,7 @@ BLACK=$(VENV)/bin/black
89
TOX=$(VENV)/bin/tox
910
PYTEST=$(VENV)/bin/pytest
1011
PRE_COMMIT=$(VENV)/bin/pre-commit
12+
WHEEL=$(VENV)/bin/wheel
1113
TWINE=$(VENV)/bin/twine
1214
GIT=git
1315

@@ -47,6 +49,9 @@ $(PYTEST): $(PIP)
4749
$(PRE_COMMIT): $(PIP)
4850
$(PIP) install pre-commit
4951

52+
$(WHEEL): $(PIP)
53+
$(PIP) install wheel
54+
5055
$(TWINE): $(PIP)
5156
$(PIP) install wheel twine
5257

@@ -84,15 +89,16 @@ test.integration:
8489

8590
## run - Run application.
8691
run:
87-
alertad
92+
alerta
8893

8994
## tag - Git tag with current version.
9095
tag:
9196
$(GIT) tag -a v$(VERSION) -m "version $(VERSION)"
9297
$(GIT) push --tags
9398

9499
## build - Build package.
95-
build: $(PKG_SDIST) $(PKG_WHEEL)
100+
build: $(PIP) $(WHEEL) $(PKG_SDIST) $(PKG_WHEEL)
101+
96102
$(PKG_SDIST):
97103
$(PYTHON) setup.py sdist
98104
$(PKG_WHEEL):
@@ -104,8 +110,11 @@ upload: $(TWINE)
104110

105111
## clean - Clean source.
106112
clean:
113+
rm -rf $(VENV)
114+
rm -rf .tox
115+
rm -rf dist
116+
rm -rf build
107117
find . -name "*.pyc" -exec rm {} \;
108-
rm -Rf build dist *.egg-info
109118

110119
## help - Show this help.
111120
help: Makefile

0 commit comments

Comments
 (0)