root/Makefile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PREFIX=/usr

copy-to-phone:
	scp /home/nee/.var/app/org.gnome.Builder/cache/gnome-builder/projects/pmpdc/flatpak/staging/aarch64-master/blue.hidamari.pmpdc.flatpak purism@pureos:/tmp
	ssh purism@pureos 'flatpak install --user -y /tmp/blue.hidamari.pmpdc.flatpak && DISPLAY=:0 flatpak run --user --socket=session-bus blue.hidamari.pmpdc'

target/release/pmpdc: src/main.rs
	cargo build --release --features installed-icons
	strip target/release/pmpdc
install: target/release/pmpdc
	install -m 0755 -D target/release/pmpdc ${PREFIX}/bin/pmpdc
	cp -r app/* ${PREFIX}/
uninstall:
	rm ${PREFIX}/bin/pmpdc
	find app/ -type f | cut -c5- | xargs -I {} rm -v ${PREFIX}/{}

sync-phone:
	rsync -rtlv --exclude=.git --exclude=target --exclude=test-install . manjaro@manjaro-arm:/home/manjaro/pmpdc

.PHONY: install uninstall sync-phone