-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildfile
More file actions
42 lines (33 loc) · 819 Bytes
/
Buildfile
File metadata and controls
42 lines (33 loc) · 819 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
37
38
39
40
41
42
# Buildfile for Makeover
py = python3
src = main.py
bin = makeover
[group: General]
# Default target runs all checks
all:
${py} ${src} --list
[group: Installation]
# Install binary to ~/.local/bin
install:
echo "Installing ${bin} to ~/.local/bin..."
mkdir -p ~/.local/bin
cp ${src} ~/.local/bin/${bin}
chmod +x ~/.local/bin/${bin}
echo "Installation complete."
uninstall:
echo "Uninstalling ${bin} from ~/.local/bin..."
rm -f ~/.local/bin/${bin}
echo "Uninstallation complete."
reinstall: uninstall install
[group: Utility]
# Clean up temporary files
clean:
echo "Cleaning temporary files..."
rm -rf __pycache__
lint:
pylint ${src}
create-env:
python3 -m venv .venv
install-deps:
.venv/bin/pip3 install -r requirements.txt
setup: create-env install-deps