Skip to content

Commit

Permalink
🧹 make 'make build' a thing (mondoohq#69)
Browse files Browse the repository at this point in the history
* make 'make build' a thing

The README mentions running 'make build', but there is no such Makefile
target. Add a 'make build' target to build the cnquery binary.

Signed-off-by: Joel Diaz <[email protected]>

* move 'make build' to more appropriate section of Makefile

Rename it to 'make cnquery/build', and update README to mention the
proper names of the makefile targets.

Signed-off-by: Joel Diaz <[email protected]>
  • Loading branch information
Joel Diaz authored Sep 20, 2022
1 parent d3f91e1 commit 5a779f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
dist
alpine-container.tar
centos-container.tar
cnquery
file1
id_rsa
id_rsa.pub
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ clean/proto:
version:
@echo $(VERSION)


# 🔨 TOOLS #

prep: prep/tools
Expand Down Expand Up @@ -201,6 +200,10 @@ mqlc/test:

# 🏗 Binary / Build #

.PHONY: cnquery/build
cnquery/build:
go build -o cnquery ${LDFLAGSDIST} apps/cnquery/cnquery.go

.PHONY: cnquery/install
cnquery/install:
GOBIN=${GOPATH}/bin go install ${LDFLAGSDIST} apps/cnquery/cnquery.go
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Building:
make prep

# build and install cnquery
make build
make install
make cnquery/build
make cnquery/install
```

Some files in this repo are auto-generated. Whenever a proto or resource pack is changed, these will need to be rebuilt. Please re-run:
Expand Down

0 comments on commit 5a779f2

Please sign in to comment.