Skip to content

Commit 169e462

Browse files
committed
Update the Makefile
1 parent b488670 commit 169e462

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
22
BUILD_FLAGS = -ldflags "-X github.com/tendermint/clearchain.Version=`git describe`"
3+
TARGETS = clearchainctl clearchaind
34

45
all: get_vendor_deps build test
56

67
########################################
78
### Build
89

9-
build: clearchaind
10+
build: $(TARGETS)
11+
12+
clearchainctl:
13+
go build $(BUILD_FLAGS) ./cmd/clearchainctl
1014

1115
clearchaind:
1216
go build $(BUILD_FLAGS) ./cmd/clearchaind
@@ -21,9 +25,6 @@ get_vendor_deps:
2125
@glide install
2226

2327

24-
########################################
25-
### Testing
26-
2728
test: coverage.txt
2829
coverage.txt: clean
2930
touch $@
@@ -35,7 +36,7 @@ coverage.txt: clean
3536
done
3637

3738
clean:
38-
rm -f profile.out coverage.txt
39+
rm -f $(TARGETS) profile.out coverage.txt
3940

4041
benchmark:
4142
@go test -bench=. $(PACKAGES)

0 commit comments

Comments
 (0)