aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-08-19 18:22:10 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-08-19 18:22:10 +0200
commit3a2940a9648a4a6e3b47b5a55643f357fc7e6790 (patch)
treeb9226f19078297665848344c198b97080b521662 /Makefile
parent555bbbac1a475639b21a8ceebdd3cf0a06c742d3 (diff)
downloadsebastiano.tronto.net-3a2940a9648a4a6e3b47b5a55643f357fc7e6790.tar.gz
sebastiano.tronto.net-3a2940a9648a4a6e3b47b5a55643f357fc7e6790.zip
Refactored build script; bye gemini
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ea13048..63cd48b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,16 @@
1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net" 1DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net"
2DESTGEMINI="tronto.net:/var/gemini"
3RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync) 2RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync)
4 3
5all: clean 4all: clean
6 ./build.sh 5 ./build.sh
7 6
8clean: 7clean:
9 rm -rf http gemini 8 rm -rf http
10 mkdir -p http gemini 9 mkdir -p http
11 10
12deploy: syncgemini synchttp 11deploy: synchttp
13
14syncgemini:
15 ${RSYNC} -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI}
16 12
17synchttp: 13synchttp:
18 ${RSYNC} -rv --delete --rsync-path=openrsync http/ ${DEST} 14 ${RSYNC} -rv --delete --rsync-path=openrsync http/ ${DEST}
19 15
20.PHONY: all clean deploy syncgemini synchttp 16.PHONY: all clean deploy synchttp

Generated with cgit - Back to sebastiano.tronto.net