forked from goarstne/mp3-matcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (62 loc) · 1.44 KB
/
Makefile
File metadata and controls
74 lines (62 loc) · 1.44 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Makefile for MP3 Volume Normalizer
# Python interpreter
PYTHON = python3
# Directories
SRC_DIR = .
TEST_DIR = .
# Default target
.PHONY: all
all: install
# Install dependencies
.PHONY: install
install:
$(PYTHON) -m pip install -r requirements.txt
# Run the application
.PHONY: run
run:
$(PYTHON) main.py
# Run tests
.PHONY: test
test:
$(PYTHON) -m unittest discover -s $(TEST_DIR) -p "test_*.py"
# Run environment test
.PHONY: test-env
test-env:
$(PYTHON) test_environment.py
# Generate icon
.PHONY: icon
icon:
$(PYTHON) generate_icon.py
# Clean up generated files
.PHONY: clean
clean:
rm -rf __pycache__
rm -rf *.pyc
rm -rf logs
rm -rf build
rm -rf dist
rm -rf *.egg-info
# Build package
.PHONY: build
build:
$(PYTHON) setup.py sdist bdist_wheel
# Install package locally
.PHONY: install-pkg
install-pkg:
$(PYTHON) -m pip install -e .
# Help
.PHONY: help
help:
@echo "MP3 Volume Normalizer Makefile"
@echo ""
@echo "Available targets:"
@echo " all - Default target, same as 'install'"
@echo " install - Install dependencies"
@echo " run - Run the application"
@echo " test - Run all tests"
@echo " test-env - Test the environment setup"
@echo " icon - Generate application icon"
@echo " clean - Clean up generated files"
@echo " build - Build package for distribution"
@echo " install-pkg - Install package locally in development mode"
@echo " help - Show this help message"