-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 781 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 781 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
PUBLIC_DIR=output/
SERVER_HOST=server.baty.net
SERVER_DIR=/home/jbaty/apps/rudimentarylathe/public_html
TARGET=AWS
deploy: build
@echo "\033[0;32mDeploying updates to $(TARGET)...\033[0m"
rsync -v -rz --checksum --delete --no-perms ~/pub/rudimentarylathe-node/files $(SERVER_HOST):$(SERVER_DIR)
rsync -v -rz --checksum --delete --no-perms ~/pub/rudimentarylathe-node/output/index.html $(SERVER_HOST):$(SERVER_DIR)
build: clean
@echo "\033[0;32mBuilding site...\033[0m"
tiddlywiki --rendertiddler $$:/plugins/tiddlywiki/tiddlyweb/save/offline index.html text/plain
commit:
@echo "\033[0;32mAdding changes\033[0m"
git add -A
git commit -m "Build site `date`"
push:
@echo "\033[0;32mPushing repo\033[0m"
git push origin master
clean:
rm -rf $(PUBLIC_DIR)
.FORCE: