-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 714 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 714 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
.PHONY: all build install uninstall
prefix ?= /usr/local
bindir ?= $(prefix)/bin
datadir ?= /usr/share
all: build
build:
cargo build --release --locked
install:
# Install the binary to the specified bin directory
install -Dm755 target/release/windot $(DESTDIR)$(bindir)/windot
# Install the desktop entry
install -Dm644 meta/org.sparklet.windot.desktop $(DESTDIR)$(datadir)/applications/org.sparklet.windot.desktop
# Install the icon
install -Dm644 meta/icon.png $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/windot.png
uninstall:
rm -f $(DESTDIR)$(bindir)/windot
rm -f $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/windot.png
rm -f $(DESTDIR)$(datadir)/applications/org.sparklet.windot.desktop