annotate Makefile @ 57:3d7eb973488b

...
author AnaTofuZ <anatofuz@gmail.com>
date Tue, 24 Nov 2020 12:00:25 +0900
parents cf297f7443c7
children 7b658cee53be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
56
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
1 .PHONY: build release fmt debug-chown
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
2
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
3 build:
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
4 cargo build
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
5
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
6 release:
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
7 cargo build --release
57
AnaTofuZ <anatofuz@gmail.com>
parents: 56
diff changeset
8 strip ./target/release/ie-virsh
56
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
9 sudo chown root ./target/release/ie-virsh
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
10 sudo chmod 4711 ./target/release/ie-virsh
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
11
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
12 fmt:
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
13 cargo fmt
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
14 cargo clippy
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
15
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
16 debug-chown:build
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
17 sudo chown root ./target/debug/ie-virsh
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
18 sudo chmod 4711 ./target/debug/ie-virsh
cf297f7443c7 add Makefile
AnaTofuZ <anatofuz@gmail.com>
parents:
diff changeset
19