-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 679 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 679 Bytes
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
all: tetrominobot.zip
dist:
mkdir -p dist
make -C src handouts
cp -r src/out/handout/* dist/
tetrominobot.zip: dist
cd dist && zip tetrominobot.zip \
ld-linux-x86-64.so.2 \
libc.so.6 \
player-manual.org \
simple.tbot \
tetrominobot
clean:
make -C src clean
.PHONY: clean dist tetrominobot.zip tx
# makefile crimes for my own debugging
# make tx to make handouts on the x86 vm, which spins up docker and runs make
# theoretically might be ok to to just make handouts on docker locally
VM_IP := vm
tx:
rsync -rva --exclude src/out --exclude dist --exclude .git . $(VM_IP):tbot
ssh -A $(VM_IP) "cd tbot && make clean && make"
scp -r $(VM_IP):~/tbot/dist ./