summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a393724
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+build_dev: tidy format
+ go build -o devserver
+
+serve_dev: build_dev
+ ./devserver --chroot ./ --root /htdocs/ --host localhost
+
+build: tidy format
+ GOOS=openbsd GOARCH=amd64 go build -o webserver
+
+live:
+ rsync -rtvzP ./htdocs/ sam@samanthony.xyz:/var/www/htdocs/samanthony.xyz/
+
+format:
+ gofmt -s -w .
+
+tidy:
+ go mod tidy