forked from cubing/timer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 691 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 691 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
31
32
33
34
35
36
all: deploy open
SFTP_PATH = "towns.dreamhost.com:~/timer.cubing.net/"
URL = "https://timer.cubing.net/"
SFTP_TEST_PATH = "towns.dreamhost.com:~/timer.cubing.net/test/"
TEST_URL = "https://timer.cubing.net/test/"
.PHONY: deploy
deploy:
echo ""
rsync -avz \
--exclude .DS_Store \
--exclude .git \
--exclude .gitignore \
--exclude .gitmodules \
./ \
${SFTP_PATH}
echo "\nDone deploying. Go to ${URL}\n"
.PHONY: deploy-test
deploy-test:
rsync -avz \
--exclude .DS_Store \
--exclude .git \
--exclude .gitignore \
--exclude .gitmodules \
./ \
${SFTP_TEST_PATH}
echo "\nDone deploying. Go to ${TEST_URL}\n"
.PHONY: open
open:
open ${URL}