-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (56 loc) · 1.68 KB
/
Copy pathMakefile
File metadata and controls
67 lines (56 loc) · 1.68 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
# LOAMP Makefile
.PHONY: install deps check clean run help test coverage quality ci
# Default target
help:
@echo "LOAMP - Linux Open Audio Music Player"
@echo "======================================"
@echo ""
@echo "Available targets:"
@echo " install - Install system dependencies and gems"
@echo " deps - Check dependencies"
@echo " run - Run the music player"
@echo " check - Run dependency check"
@echo " test - Run all tests"
@echo " coverage - Run tests with coverage report"
@echo " quality - Run quality checks (rubocop + tests)"
@echo " ci - Run full CI suite"
@echo " clean - Clean bundle cache"
@echo " desktop - Install desktop entry"
@echo " help - Show this help"
# Install dependencies
install:
@echo "Installing LOAMP dependencies..."
./install.sh
# Check dependencies
deps check:
@echo "Checking dependencies..."
./test_deps.rb
# Run the application
run:
@echo "Starting LOAMP..."
./loamp.rb
# Test targets
test:
@echo "Running all tests..."
bundle exec rake test
coverage:
@echo "Running tests with coverage..."
bundle exec rake coverage
quality:
@echo "Running quality checks..."
bundle exec rake quality
ci:
@echo "Running full CI suite..."
bundle exec rake ci
# Clean bundle cache
clean:
@echo "Cleaning bundle cache..."
bundle clean --force
# Install desktop entry
desktop:
@echo "Installing desktop entry..."
@mkdir -p ~/.local/share/applications
@cp loamp.desktop ~/.local/share/applications/
@sed -i "s|/home/andrew/workspace/loamp|$(PWD)|g" ~/.local/share/applications/loamp.desktop
@update-desktop-database ~/.local/share/applications/
@echo "Desktop entry installed to ~/.local/share/applications/"