aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4352b9f..ea13048 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net" 1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net"
2DESTGEMINI="tronto.net:/var/gemini" 2DESTGEMINI="tronto.net:/var/gemini"
3RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync)
3 4
4all: clean 5all: clean
5 ./build.sh 6 ./build.sh
@@ -11,11 +12,9 @@ clean:
11deploy: syncgemini synchttp 12deploy: syncgemini synchttp
12 13
13syncgemini: 14syncgemini:
14 rsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI} || \ 15 ${RSYNC} -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI}
15 openrsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI}
16 16
17synchttp: 17synchttp:
18 rsync -rv --delete --rsync-path=openrsync http/ ${DEST} || \ 18 ${RSYNC} -rv --delete --rsync-path=openrsync http/ ${DEST}
19 openrsync -rv --delete --rsync-path=openrsync http/ ${DEST}
20 19
21.PHONY: all clean deploy syncgemini synchttp 20.PHONY: all clean deploy syncgemini synchttp

Generated with cgit - Back to sebastiano.tronto.net