aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-05-25 22:10:49 +0700
committerShulhan <m.shulhan@gmail.com>2026-04-09 22:18:07 +0700
commitd0c5be4444ee2c1b8371456adb2f65bf6ef62234 (patch)
treebbd77b90f23619df8bef1ae7c7c9adce61c9c0f3 /Makefile
parent3d13cee518990fcfba0e65a9077a975b94ad209e (diff)
downloadgo-x-proposal-d0c5be4444ee2c1b8371456adb2f65bf6ef62234.tar.xz
cmd/www-go-proposal: static HTTP server to serve proposal with HTML
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0223d8d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+.PHONY: embed
+embed:
+ ciigo -exclude "(cmd|go.mod|go.sum)" \
+ -template ./html.tmpl \
+ -out cmd/www-go-proposal/memfs.go \
+ embed .
+
+.PHONY: dev
+dev:
+ DEBUG=1 go run ./cmd/www-go-proposal
+
+.PHONY: deploy
+deploy: embed
+ go build ./cmd/www-go-proposal
+ rsync ./www-go-proposal golang-id.org:~/bin/
+
+.PHONY: deploy-vm
+deploy-vm: embed
+ go build ./cmd/www-go-proposal
+ rsync ./www-go-proposal golang-id.local:~/bin/