-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 818 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (27 loc) · 818 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
CARGO ?= cargo
PREFIX ?= $(HOME)/.local
.PHONY: build release test lint fmt install install-hooks clean
build:
$(CARGO) build
release:
$(CARGO) build --release
test:
$(CARGO) test
lint:
$(CARGO) clippy -- -D warnings
fmt:
$(CARGO) fmt
install: release
install -Dm755 target/release/orca $(PREFIX)/bin/orca
@echo "installed -> $(PREFIX)/bin/orca"
install-hooks: install
$(PREFIX)/bin/orca install-hooks
install-plasmoid:
kpackagetool6 --type Plasma/Applet --install plasmoid 2>/dev/null || \
kpackagetool6 --type Plasma/Applet --upgrade plasmoid
install-desktop:
install -Dm644 packaging/orca.desktop $(HOME)/.local/share/applications/orca.desktop
install -Dm644 assets/orca-launcher.png $(HOME)/.local/share/icons/hicolor/256x256/apps/orca.png
-kbuildsycoca6 2>/dev/null
clean:
$(CARGO) clean