aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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.