aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..def4abd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+.POSIX:
+
+BIN := ./bin
+SRC := ./src
+OUT := ./out
+TMP := ./tmp
+BASE_URL = https://rgoncalves.se
+
+.PHONY: all \
+ website \
+ clean
+
+all: clean website
+
+website: clean
+ BASE_URL=$(BASE_URL) $(BIN)/ssg
+
+local: clean
+ BASE_URL=$$PWD/$(OUT) $(BIN)/ssg
+
+clean:
+ - rm -r $(OUT) $(TMP)/*
remember that computers suck.