OSDN Git Service

fix Makefile (#586)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Wed, 11 Apr 2018 13:06:43 +0000 (21:06 +0800)
committerPaladz <yzhu101@uottawa.ca>
Wed, 11 Apr 2018 13:06:43 +0000 (21:06 +0800)
Makefile

index ce69ea4..7571c95 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,8 +39,11 @@ all: test target release-all
 
 bytomd:
        @echo "Building bytomd to cmd/bytomd/bytomd"
-       @go build -ldflags "-X github.com/bytom/version.GitCommit=`git rev-parse HEAD`" \
-    -o cmd/bytomd/bytomd cmd/bytomd/main.go
+       go build $(BUILD_FLAGS) -o cmd/bytomd/bytomd cmd/bytomd/main.go
+
+bytomcli:
+       @echo "Building bytomcli to cmd/bytomcli/bytomcli"
+       go build $(BUILD_FLAGS) -o cmd/bytomcli/bytomcli cmd/bytomcli/main.go
 
 target:
        mkdir -p $@