Skip to content

Commit

Permalink
Add makefile (#43)
Browse files Browse the repository at this point in the history
* Create Makefile

Signed-off-by: Akshay Gaikwad <[email protected]>

Signed-off-by: Akshay Gaikwad <[email protected]>
Co-authored-by: foss-pravin <[email protected]>
  • Loading branch information
akshay196 and foss-pravin authored Feb 17, 2023
1 parent 7d70ebe commit 0116568
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
BIN="./bin"

## Build

.PHONY: build
build:
@echo 'Building pctl...'
go build -ldflags "-s" -o $(BIN)/pctl

## Quality control

.PHONY: tidy
tidy:
go mod tidy

.PHONY: vendor
vendor:
go mod vendor

.PHONY: test
test:
go test ./...

.PHONY: check
check:
go fmt ./...
go vet ./...
$(MAKE) tidy

.PHONY: clean
clean:
rm -rf $(BIN)

0 comments on commit 0116568

Please sign in to comment.