aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-09-27 15:08:34 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-09-27 15:08:34 +0200
commit8fe5387c47196d09063e12ca6b9ad768ad4849b0 (patch)
treedc75df123d86c4027b9fb18218d1bafdc13819fe /Makefile
parent17278427d7e7eecd95c8bf808501188342cd8435 (diff)
downloadrgoncalves.se-8fe5387c47196d09063e12ca6b9ad768ad4849b0.tar.gz
all: Bump to version 3 of static site generation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index fcd376c..f77bee2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,7 @@
.POSIX:
-BIN := ./bin
-SRC := ./src
-OUT := ./out
-TMP := ./tmp
REMOTE := root@dc0
REMOTE_DIR := /var/www/htdocs/rgoncalves.se
-BASE_URL = https://rgoncalves.se
.PHONY: all \
website \
@@ -14,15 +9,12 @@ BASE_URL = https://rgoncalves.se
all: clean website
-local: clean
- BASE_URL=$$PWD/$(OUT) $(BIN)/ssg
-
website: clean
- BASE_URL=$(BASE_URL) $(BIN)/ssg
+ ./bin/ssg
deploy: website
- rsync -e ssh -avz --delete $(OUT)/ $(REMOTE):$(REMOTE_DIR)
+ rsync -e ssh -avz --delete out / $(REMOTE):$(REMOTE_DIR)
ssh $(REMOTE) chown -R www:www $(REMOTE_DIR)
clean:
- - rm -r $(OUT) $(TMP)/*
+ - rm -r out tmp
remember that computers suck.