Skip to content

Commit

Permalink
chore: makefile fixes (#122)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Oct 19, 2023
1 parent c8bff2b commit 0bac3c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ build: $(CLI_BIN) ## Build

.PHONY: build-wasm
build-wasm: fmt vet ## Build the wasm binary
@echo Build wasm module... >&2
@GOOS=js GOARCH=wasm go build -o ./playground/assets/main.wasm -ldflags=$(LD_FLAGS) ./cmd/wasm/main.go

.PHONY: serve
serve: build-wasm ## Serve static files.
python3 -m http.server -d playground/ 8080
.PHONY: serve-playground
serve-playground: $(CLI_BIN) ## Serve playground
@echo Serve playground... >&2
@./$(CLI_BIN) playground

.PHONY: ko-build
ko-build: $(KO) ## Build image (with ko)
Expand Down

0 comments on commit 0bac3c7

Please sign in to comment.