-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (31 loc) · 995 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
43
PYTHON = python3
BIN = colorsclassifier
OUTPUT = ~/Downloads/output
IMAGES_FOLDER = ~/Downloads/images
.PHONY: all setup install run run_gui debug debug_gui build_osx format clean
all:
make run
setup:
$(PYTHON) -m venv venv
source venv/bin/activate
pip install -r requirements.txt
install:
pip install .
upgrade:
pip install --upgrade --force-reinstall --no-deps .
run:
$(BIN) --output $(OUTPUT) --images-folder $(IMAGES_FOLDER)
run_gui:
$(BIN) --output $(OUTPUT) --images-folder $(IMAGES_FOLDER) --gui
debug:
make upgrade
$(BIN) --debug --force --output $(OUTPUT) --images-folder $(IMAGES_FOLDER) --method palette --output-type filenames --output-color
debug_gui:
make upgrade
$(BIN) --debug --force --output $(OUTPUT) --images-folder $(IMAGES_FOLDER) --method palette --output-type filenames --output-color --gui
build_osx:
./scripts/build_osx.sh
format:
black -l 78 colorsclassifier/
clean:
$(RM) -rf $(OUTPUT) dist/ build/ *.egg-info .eggs