-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (28 loc) · 1.59 KB
/
Makefile
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
PREFIX?=/usr/
ID=pet.kate.rustgrab
test:
RUST_BACKTRACE=1 cargo test
run:
RUST_BACKTRACE=1 cargo run -- --no-fork
install-tmpwrap: install tmp
install: install-resources
cargo install --path . --force --root $(DESTDIR)$(PREFIX)
tmp:
install data/tmpwrap /app/bin/rustgrab-tmpwrap
install-resources:
mkdir -p $(DESTDIR)$(PREFIX)/share/applications/
cp data/$(ID).desktop.in $(DESTDIR)$(PREFIX)/share/applications/$(ID).desktop
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/
cp data/icons/hicolor/16x16/apps/$(ID).png $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/apps/$(ID).png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps/
cp data/icons/hicolor/32x32/apps/$(ID).png $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps/$(ID).png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/
cp data/icons/hicolor/64x64/apps/$(ID).png $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/apps/$(ID).png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/
cp data/icons/hicolor/128x128/apps/$(ID).png $(DESTDIR)$(PREFIX)/share/icons/hicolor/128x128/apps/$(ID).png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/
cp data/icons/hicolor/256x256/apps/$(ID).png $(DESTDIR)$(PREFIX)/share/icons/hicolor/256x256/apps/$(ID).png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/512x512/apps/
cp data/icons/hicolor/512x512/apps/$(ID).png $(DESTDIR)$(PREFIX)/share/icons/hicolor/512x512/apps/$(ID).png
mkdir -p $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/
cp data/icons/hicolor/scalable/apps/$(ID).svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/