diff --git a/Makefile b/Makefile index 10abd9e9..549af3ce 100644 --- a/Makefile +++ b/Makefile @@ -12,13 +12,15 @@ ifneq ($(RW),yes) RO = -mod=readonly endif -jk: pkg/__std/lib/assets_vfsdata.go FORCE ifeq ($(STATIC),yes) - GO111MODULE=on go build $(RO) -a -tags netgo -o $@ -ldflags '-X main.Version=$(VERSION) -s -w -extldflags "-static"' -else - GO111MODULE=on go build $(RO) -o $@ -ldflags "-X main.Version=$(VERSION) -s -w" + A = -a + TAGS += -tags netgo + LDFLAGS += -extldflags "-static" endif +jk: pkg/__std/lib/assets_vfsdata.go FORCE + GO111MODULE=on go build $(RO) $(A) $(TAGS) -o $@ -ldflags '-X main.Version=$(VERSION) -s -w $(LDFLAGS)' + pkg/__std/lib/assets_vfsdata.go: std/internal/__std_generated.ts std/dist/index.js GO111MODULE=on go generate $(RO) ./pkg/__std/lib