-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 961 Bytes
/
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
.PHONY: all clean install prepare release rpm
all:
@cargo build --target=armv7-unknown-linux-gnueabihf
clean:
@rm -rvf target
install:
@scp ./target/armv7-unknown-linux-gnueabihf/release/aurora-rust-gui nemo@192.168.2.15:/home/nemo/
@scp ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/RPMS/armv7hl/*.rpm nemo@192.168.2.15:/home/nemo/
prepare:
@sudo apt install -y g++-arm-linux-gnueabihf
@rustup target add armv7-unknown-linux-gnueabihf
@cargo install cargo-rpm
release:
@cargo build --release --target=armv7-unknown-linux-gnueabihf
rpm:
@mkdir -p ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/SOURCES
@cp -vf .rpm/aurora-rust-gui.desktop ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/SOURCES
@cp -rvf .rpm/icons ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/SOURCES
@cp -rvf qml ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/SOURCES
@cargo rpm build -v --target=armv7-unknown-linux-gnueabihf