mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
Makefile: allow command-specific go.mod files (#3641)
The command builds were always using the root go.mod. Adding cmd/mycmd/go.mod produced an "package not found" error. This changes the build to run in the cmd/mycmd directory: * If cmd/mycmd/go.mod is present, it is used. * Otherwise it builds the main package using the root go.mod as before.
This commit is contained in:
parent
d470349830
commit
90b52929c6
2
Makefile
2
Makefile
@ -43,7 +43,7 @@ dbg:
|
|||||||
%.cmd: git-submodules
|
%.cmd: git-submodules
|
||||||
@# Note: $* is replaced by the command name
|
@# Note: $* is replaced by the command name
|
||||||
@echo "Building $*"
|
@echo "Building $*"
|
||||||
@$(GOBUILD) -o $(GOBIN)/$* ./cmd/$*
|
@cd ./cmd/$* && $(GOBUILD) -o $(GOBIN)/$*
|
||||||
@echo "Run \"$(GOBIN)/$*\" to launch $*."
|
@echo "Run \"$(GOBIN)/$*\" to launch $*."
|
||||||
|
|
||||||
geth: erigon
|
geth: erigon
|
||||||
|
Loading…
Reference in New Issue
Block a user