diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
| @@ -1,20 +1,16 @@ | |||
| 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" | ||
| 3 | RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync) | 2 | RSYNC=$$( (command -V rsync 2>&1 > /dev/null && echo rsync) || echo openrsync) |
| 4 | 3 | ||
| 5 | all: clean | 4 | all: clean |
| 6 | ./build.sh | 5 | ./build.sh |
| 7 | 6 | ||
| 8 | clean: | 7 | clean: |
| 9 | rm -rf http gemini | 8 | rm -rf http |
| 10 | mkdir -p http gemini | 9 | mkdir -p http |
| 11 | 10 | ||
| 12 | deploy: syncgemini synchttp | 11 | deploy: synchttp |
| 13 | |||
| 14 | syncgemini: | ||
| 15 | ${RSYNC} -rv --delete --rsync-path=openrsync gemini/ ${DESTGEMINI} | ||
| 16 | 12 | ||
| 17 | synchttp: | 13 | synchttp: |
| 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 |
