Skip to content

Commit 5ebf088

Browse files
committed
Add a compile target for quick re-compilation
1 parent 5e23ca2 commit 5ebf088

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ clean:
3232
rm -f $(PROJECT)/server/assets.go
3333
rm -r dist
3434

35+
compile:
36+
go install $(LDFLAGS) ./$(PROJECT)/
37+
3538
coverage:
3639
go test -race -covermode=atomic -coverprofile=c.out ./...
3740
sed -i '/^github.com\/cloudcloud\/auto-docs\/server\/auto-docs\/assets.go.*/d' c.out
@@ -49,8 +52,7 @@ image: VERSION?=1.0.0
4952
image:
5053
docker build -t cloudcloud/auto-docs:v$(VERSION) .
5154

52-
install: build-fe
53-
go install $(LDFLAGS) ./$(PROJECT)/
55+
install: build-fe compile
5456

5557
test: bin-dist install
5658
go test -v -race ./...

0 commit comments

Comments
 (0)