Skip to content

Commit 19bb270

Browse files
committed
[minor] surface debug info
1 parent 153c08e commit 19bb270

6 files changed

Lines changed: 553 additions & 12 deletions

File tree

Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
.PHONY: build deps lint test
1+
.PHONY: build deps lint test work install
22

33
BINARY_NAME=sitectl-drupal
4+
INSTALL_DIR ?= /usr/local/bin
45

5-
deps:
6-
go get .
6+
deps: work
77
go mod tidy
88

99
build: deps
1010
go build -o $(BINARY_NAME) .
1111

12+
install: work build
13+
sudo cp $(BINARY_NAME) $(INSTALL_DIR)/$(BINARY_NAME)
14+
1215
lint:
1316
go fmt ./...
1417
golangci-lint run
@@ -22,3 +25,6 @@ lint:
2225

2326
test: build
2427
go test -v -race ./...
28+
29+
work:
30+
./scripts/use-go-work.sh

0 commit comments

Comments
 (0)