aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2026-02-04 06:17:55 +0700
committerShulhan <m.shulhan@gmail.com>2026-04-09 22:18:08 +0700
commitda9dcca05cea2ab6349e4d2451213fa676fcd3ab (patch)
treefe3e44dca0fa4a3e2087f0e8461948af9f6aa18b /Makefile
parentd0c5be4444ee2c1b8371456adb2f65bf6ef62234 (diff)
downloadgo-x-proposal-da9dcca05cea2ab6349e4d2451213fa676fcd3ab.tar.xz
all: update the command and style to follow latest ciigo
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