-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 823 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
41
42
IP =
USER = ubuntu
PORT = 22
ID_FILE =
PRJ_NAME =
SERVER_PROJECT_PATH = /home/$(USER)/$(PRJ_NAME)
PATH_MY_OS =
deps:
sudo apt install make
run:
python3 avl_optmizer.py
ssh:
ssh -i $(ID_FILE) $(USER)@$(IP)
ssh_nopass:
ssh $(USER)@$(IP) -p $(PORT)
install:
rsync -av --exclude=".git" -e 'ssh -i $(ID_FILE) -p $(PORT)' . $(USER)@$(IP):$(SERVER_PROJECT_PATH)
@echo "app installed on target:$(SERVER_PROJECT_PATH)"
pull:
rsync -av --exclude=".git" -e 'ssh -i $(ID_FILE) -p $(PORT)' $(USER)@$(IP):$(SERVER_PROJECT_PATH) ..
@echo "app installed on target:$(SERVER_PROJECT_PATH)"
parse_util:
python3 avl_parse_util.py
clean:
find env -name "out_*.txt" -exec rm -f {} \;
find env -name "in_*.avl" -exec rm -f {} \;
commita:
@git add .
@git commit -m "$(shell date)"
@git push origin master
.PHONY: all