summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2022-04-17 21:33:34 -0230
committerSam Anthony <sam@samanthony.xyz>2022-04-17 21:33:34 -0230
commit1ebdb78c0c710427481da79260e7b7573b331334 (patch)
treee40791d2a6bc780f7abfd917446d567d86a7a771 /Makefile
parentfefe7774c5b75f8a1c8923a7c394e6f025223e5e (diff)
downloadsamanthony.xyz-1ebdb78c0c710427481da79260e7b7573b331334.zip
add dev mode and tls support to server
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5add856..5db9fc4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,11 @@
-build: tidy format
- go build
+build_dev: tidy format
+ go build -o devserver
+
+serve_dev: build_dev
+ ./devserver --dev
-serve: tidy format
- go run .
+build: tidy format
+ GOOS=openbsd GOARCH=amd64 go build -o webserver
live:
rsync -rtvzP ./htdocs/ sam@samanthony.xyz:/var/www/htdocs/samanthony.xyz/