mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-24 07:09:09 -04:00
Fix generate target in Makefile
This commit is contained in:
3 files changed
+10
-5
No files matched your search
@@ -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
@@ -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
@@ -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'
|
||||
Reference in new issue
Block a user