diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
| @@ -1,4 +1,5 @@ | |||
| 1 | DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net" | 1 | DEST="tronto.net:/var/www/htdocs/sebastiano.tronto.net" |
| 2 | DESTGEMINI="tronto.net:/var/gemini" | ||
| 2 | 3 | ||
| 3 | all: clean | 4 | all: 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 | ||
| 10 | deploy: all | 11 | deploy: syncgemini synchttp |
| 12 | |||
| 13 | syncgemini: | ||
| 14 | rsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI} || \ | ||
| 15 | openrsync -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI} | ||
| 16 | |||
| 17 | synchttp: | ||
| 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 |
