-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 858 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
all: release
prereq:
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path -y
rustup update
rustup override set nightly
debug:
cargo build
release:
cargo build --release
run-debug:
cargo run
run-release:
cargo run --release
package:
mkdir -p ~/tmp/staging
rsync -a . ~/tmp/staging
rm -rf ~/tmp/staging/target/debug
rm -rf ~/tmp/staging/task
rm -rf ~/tmp/staging/visualizer
rm -rf ~/tmp/staging/.git
cd ~/tmp/staging && tar cvzf ~/tmp/icfp-6dd36dd7-ff7c-4dfb-97fc-c9388a8132bf.tar.gz .
md5sum ~/tmp/icfp-6dd36dd7-ff7c-4dfb-97fc-c9388a8132bf.tar.gz
ssh:
echo "vm's setting: host:2222 -> guest:22"
echo "user: punter"
echo "password: icfp2017"
ssh -p 2222 -l punter localhost
rsync:
: echo on vm: apt-get install rsync
rsync -avz --progress --exclude "target/" --delete -e 'ssh -p 2222' ~/src/icfp2017 "punter@localhost:src"