-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 980 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 980 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
# Scrybe — convenience wrapper around CMake and the setup script.
PREFIX ?= $(HOME)/.local
BUILD ?= build
.PHONY: all build run configure install setup uninstall clean
all: build
configure:
cmake -S . -B $(BUILD) -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(PREFIX)
build: configure
cmake --build $(BUILD) -j
run: build
$(BUILD)/bin/scrybe
# Full first-time install (deps, models, desktop entry, hotkey, autostart).
setup:
./build-and-setup.sh
# Install just the built binary + desktop launcher + icon (deps already present).
install: build
install -Dm755 $(BUILD)/bin/scrybe $(PREFIX)/bin/scrybe
install -Dm644 packaging/scrybe.svg $(PREFIX)/share/icons/hicolor/scalable/apps/scrybe.svg
sed 's|^Exec=scrybe|Exec=$(PREFIX)/bin/scrybe|' packaging/scrybe.desktop \
> $(PREFIX)/share/applications/scrybe.desktop
@update-desktop-database $(PREFIX)/share/applications 2>/dev/null || true
uninstall:
./scripts/uninstall.sh
clean:
rm -rf $(BUILD)