Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ There are two binaries:

```sh
make build # builds ./bin/hooks and ./bin/hooksctl
make install # go install ./cmd/hooksctl (into $GOBIN, else $GOPATH/bin)
make test # go test ./...
make lint # golangci-lint run ./... (config in .golangci.yml)
make tidy # go mod tidy
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build test lint run dev tidy sqlc sqlc-diff docker-build docker-run docker-test
.PHONY: build install test lint run dev tidy sqlc sqlc-diff docker-build docker-run docker-test

GO ?= go
HOOKS_BIN := ./bin/hooks
Expand All @@ -13,6 +13,11 @@ build:
$(GO) build -o $(HOOKS_BIN) ./cmd/hooks
$(GO) build -o $(HOOKSCTL_BIN) ./cmd/hooksctl

# Installs hooksctl into $GOBIN if set, else $GOPATH/bin (default ~/go/bin).
# Override the destination with `GOBIN=/some/dir make install`.
install:
$(GO) install ./cmd/hooksctl

test:
$(GO) test ./...

Expand Down
Loading