-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
24 lines (18 loc) · 851 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
.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-helloworld [email protected]:/home/nemo/
@scp ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/RPMS/armv7hl/*.rpm [email protected]:/home/nemo/
prepare:
@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-helloworld.desktop ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/SOURCES
@cp -rvf .rpm/icons ./target/armv7-unknown-linux-gnueabihf/release/rpmbuild/SOURCES
@cargo rpm build -v --target=armv7-unknown-linux-gnueabihf