aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0223d8d..a9749b5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,18 @@
+.PHONY: all
+all: build
+
+.PHONY: build
+build: CGO_ENABLED=0
+build: embed
+ go build ./cmd/www-go-proposal
+
.PHONY: embed
embed:
- ciigo -exclude "(cmd|go.mod|go.sum)" \
- -template ./html.tmpl \
- -out cmd/www-go-proposal/memfs.go \
- embed .
+ go run ./cmd/www-go-proposal embed
.PHONY: dev
dev:
- DEBUG=1 go run ./cmd/www-go-proposal
+ go run ./cmd/www-go-proposal -dev
.PHONY: deploy
deploy: embed