-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 680 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (22 loc) · 680 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
# Makefile for pkgdrop
.PHONY: all install uninstall test test-unit test-integration clean
all: src/pkgdrop
install: src/pkgdrop
sudo install -Dm755 src/pkgdrop /usr/bin/pkgdrop
uninstall:
sudo rm -f /usr/bin/pkgdrop /usr/share/applications/pkgdrop.desktop /usr/share/kservices5/ServiceMenus/pkgdrop-servicemenu.xml
test: test-unit test-integration
test-unit:
@echo "Running unit tests..."
bats tests/pkgdrop.bats
test-integration:
@echo "Running integration tests..."
bats tests/integration.bats
check:
@echo "Running syntax check..."
bash -n src/pkgdrop
@echo "Running shellcheck..."
shellcheck src/pkgdrop
@echo "All checks passed."
clean:
rm -f src/*.bak