Skip to content

Commit 615bf01

Browse files
committed
Updated makefile
1 parent a642c19 commit 615bf01

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ DOCKER ?= $(shell which docker 2>/dev/null)
44
WASMBUILD ?= $(shell which wasmbuild 2>/dev/null)
55
BUILDDIR ?= build
66
CMDDIR=$(wildcard cmd/*)
7-
WASMDIR=$(wildcard wasm/*)
87

98
# Set OS and Architecture
109
ARCH ?= $(shell arch | tr A-Z a-z | sed 's/x86_64/amd64/' | sed 's/i386/amd64/' | sed 's/armv7l/arm/' | sed 's/aarch64/arm64/')
@@ -35,17 +34,10 @@ $(CMDDIR): go-dep mkdir
3534
@rm -rf ${BUILDDIR}/$(shell basename $@)
3635
@$(GO) build -tags frontend $(BUILD_FLAGS) -o ${BUILDDIR}/$(shell basename $@) ./$@
3736

38-
# Rules for building WASM (kept for standalone wasm builds)
39-
.PHONY: $(WASMDIR)
40-
$(WASMDIR): go-dep wasmbuild-dep tidy mkdir
41-
@echo 'wasmbuild $@'
42-
@${WASMBUILD} build --go-flags='$(BUILD_FLAGS)' -o ${BUILDDIR}/wasm/$(shell basename $@) ./$@ && \
43-
mv ${BUILDDIR}/wasm/$(shell basename $@)/wasm_exec.html ${BUILDDIR}/wasm/$(shell basename $@)/index.html
44-
4537
# Build pgmanager with embedded frontend
4638
.PHONY: pgmanager
4739
pgmanager: go-dep wasmbuild-dep tidy mkdir
48-
@echo 'generate frontend'
40+
@echo 'go generate frontend'
4941
@$(GO) generate -tags frontend ./pkg/manager/httphandler/...
5042
@echo 'go build cmd/pgmanager'
5143
@$(GO) build -tags frontend $(BUILD_FLAGS) -o ${BUILDDIR}/pgmanager ./cmd/pgmanager

0 commit comments

Comments
 (0)