Fix generate target in Makefile

This commit is contained in:
Benedikt Kulmann committed 2020-07-01 11:40:00 +02:00
1 parent 30a0742d2a
commit fb3b6dcd5f
3 files changed
+10 -5

No files matched your search

+7 -2
View File
@@ -23,7 +23,7 @@ endif
PACKAGES ?= $(shell go list ./...)
SOURCES ?= $(shell find . -name "*.go" -type f -not -path "./node_modules/*")
GENERATE ?= $(PACKAGES) $(IMPORT)/pkg/assets
GENERATE ?= $(IMPORT)/pkg/assets
TAGS ?=
@@ -79,7 +79,7 @@ lint:
for PKG in $(PACKAGES); do go run golang.org/x/lint/golint -set_exit_status $$PKG || exit 1; done;
.PHONY: generate
generate:
generate: protobuf webapp
go generate $(GENERATE)
.PHONY: changelog
@@ -197,3 +197,8 @@ $(PROTO_SRC)/accounts.swagger.json: $(PROTO_SRC)/accounts.proto
.PHONY: protobuf
protobuf: $(GOPATH)/bin/protoc-gen-go $(GOPATH)/bin/protoc-gen-micro $(GOPATH)/bin/protoc-gen-microweb $(GOPATH)/bin/protoc-gen-swagger \
$(PROTO_SRC)/accounts.pb.go $(PROTO_SRC)/accounts.pb.micro.go $(PROTO_SRC)/accounts.pb.web.go $(PROTO_SRC)/accounts.swagger.json
.PHONY: webapp
webapp:
yarn generate-api
yarn build
+2 -2
View File
@@ -1,5 +1,5 @@
// Code generated by fileb0x at "2020-07-01 10:47:43.466579 +0200 CEST m=+0.004917707" from config file "embed.yml" DO NOT EDIT.
// modification hash(7584f18725298c447104e0f01f48babf.8058aec596c5fb73022d09bb97af796e)
// Code generated by fileb0x at "2020-07-01 11:39:14.734417 +0200 CEST m=+0.006772493" from config file "embed.yml" DO NOT EDIT.
// modification hash(75ea29610fe7f7fa52cd0276c7e2565c.8058aec596c5fb73022d09bb97af796e)
package assets
+1 -1
View File
@@ -2,4 +2,4 @@
-r '^(cmd|pkg)/.*\.go$' -R '^node_modules/' -s -- sh -c 'make bin/ocis-accounts && bin/ocis-accounts server --asset-path assets/'
# frontend
-r '^ui/.*\.(vue|js)$' -R '^node_modules/' -- sh -c 'yarn build && make generate'
-r '^ui/.*\.(vue|js)$' -R '^node_modules/' -- sh -c 'make generate'