aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 06441fc..73846ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net" 1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net"
2DESTGEMINI="tronto.net:/var/gemini"
2 3
3all: clean 4all: clean
4 ./build.sh 5 ./build.sh
@@ -7,8 +8,14 @@ clean:
7 mkdir -p http 8 mkdir -p http
8 rm -r http 9 rm -r http
9 10
10deploy: all 11deploy: syncgemini synchttp
12
13syncgemini:
14 rsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI} || \
15 openrsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI}
16
17synchttp:
11 rsync -rv --delete --rsync-path=openrsync http/ ${DEST} || \ 18 rsync -rv --delete --rsync-path=openrsync http/ ${DEST} || \
12 openrsync -rv --delete --rsync-path=openrsync http/ ${DEST} 19 openrsync -rv --delete --rsync-path=openrsync http/ ${DEST}
13 20
14.PHONY: all clean deploy 21.PHONY: all clean deploy syncgemini synchttp

Generated with cgit - Back to sebastiano.tronto.net