diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-08-19 18:22:10 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-08-19 18:22:10 +0200 |
| commit | 3a2940a9648a4a6e3b47b5a55643f357fc7e6790 (patch) | |
| tree | b9226f19078297665848344c198b97080b521662 /Makefile | |
| parent | 555bbbac1a475639b21a8ceebdd3cf0a06c742d3 (diff) | |
| download | sebastiano.tronto.net-3a2940a9648a4a6e3b47b5a55643f357fc7e6790.tar.gz sebastiano.tronto.net-3a2940a9648a4a6e3b47b5a55643f357fc7e6790.zip | |
Refactored build script; bye gemini
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 |
