Skip to content

Commit

Permalink
Add makefile with test, build, and install targets (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jharshman committed May 8, 2021
1 parent c71b862 commit a15f888
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: test
test:
go test -v ./...

.PHONY: build
build:
make -C tscli

.PHONY: install
install: build
cp ./bin/tscli /usr/local/bin/

.PHONY: clean
clean:
rm -rf ./bin
8 changes: 8 additions & 0 deletions tscli/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BINDIR ?= ../bin

default: build

.PHONY: build
build:
@mkdir -p $(BINDIR)
GOOS=linux GOARCH=amd64 /usr/local/go/bin/go build -o $(BINDIR)/tscli

0 comments on commit a15f888

Please sign in to comment.