-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (30 loc) · 772 Bytes
/
Makefile
File metadata and controls
36 lines (30 loc) · 772 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
PROJECT_NAME = mystarter
ifeq ($(OS),Windows_NT)
RM := rd /q /s
PYTHON := python
PIP := pip
else
UNAME_S := $(shell uname -s)
RM := /bin/rm -rf
PYTHON := python3
PIP := pip3
endif
.PHONY: virtual install build-requirements black isort flake8
all: package
develop:
sudo apt-get -y install python3.8 python3-pip
$(PIP) install --user --upgrade setuptools wheel
$(PIP) install -Ur requirements.txt
package:
ifeq ($(OS),Windows_NT)
@$(PYTHON) setup.py bdist_wheel
else
@$(PYTHON) setup.py sdist bdist_wheel
endif
clean:
ifeq ($(OS),Windows_NT)
$(RM) dist $(PROJECT_NAME).build build $(PROJECT_NAME).egg-info 2>nul
else
@$(RM) dist $(PROJECT_NAME).build build $(PROJECT_NAME).egg-info 2> /dev/null
endif
@sudo $(PIP) uninstall --yes $(PROJECT_NAME) 2> /dev/null