Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
goshimmer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iota-imt
goshimmer
Commits
2324812e
Commit
2324812e
authored
5 years ago
by
Wolfgang Welz
Browse files
Options
Downloads
Patches
Plain Diff
fix: fix makefile
parent
0e737c32
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+24
-2
24 additions, 2 deletions
Makefile
with
24 additions
and
2 deletions
Makefile
+
24
−
2
View file @
2324812e
SHELL
:=
/bin/bash
REPO
:=
$(
shell
pwd
)
GOFILES_NOVENDOR
:=
$(
shell go list
-f
"{{.Dir
}
}"
./...
)
PACKAGES_NOVENDOR
:=
$(
shell go list ./...
)
PROTOC_GEN_GO
:=
$(
GOPATH
)
/bin/protoc-gen-go
# Protobuf generated go files
PROTO_FILES
=
$(
shell find
.
-path
./vendor
-prune
-o
-type
f
-name
'*.proto'
-print
)
PROTO_GO_FILES
=
$(
patsubst %.proto, %.pb.go,
$(
PROTO_FILES
))
PROTO_GO_FILES_REAL
=
$(
shell find
.
-path
./vendor
-prune
-o
-type
f
-name
'*.pb.go'
-print
)
.PHONY
:
build
build
:
proto
go build
-o
shimmer
# Protobuffing
.PHONY
:
proto
proto
:
$(PROTO_GO_FILES)
# If $GOPATH/bin/protoc-gen-go does not exist, we'll run this command to install it.
$(PROTOC_GEN_GO)
:
...
...
@@ -13,5 +25,15 @@ $(PROTOC_GEN_GO):
%.pb.go
:
%.proto | $(PROTOC_GEN_GO)
protoc
$<
--go_out
=
plugins
=
grpc,paths
=
source_relative:.
.PHONY
:
compile
compile
:
$(PROTO_GO_FILES)
.PHONY
:
clean_proto
clean_proto
:
@
rm
-f
$(
PROTO_GO_FILES_REAL
)
.PHONY
:
vet
vet
:
@
echo
"Running go vet."
@
go vet
${
PACKAGES_NOVENDOR
}
.PHONY
:
test
test
:
vet
go
test
-timeout
30s ./...
${
GOPACKAGES_NOVENDOR
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment