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