Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

Commit

Permalink
change first makefile target to be build
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlewis42 committed Oct 24, 2019
1 parent 800443c commit 6aeaf0e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ GOBUILD_FLAGS=-ldflags "-X $(BEAT_PATH)/vendor/github.com/elastic/beats/libbeat/
EXES=linux windows darwin
RELEASE_TEMPLATE_DIR=${BUILD_DIR}/releases/template

.PHONY: build
build:
go build -o ${BEAT_NAME} ${GOBUILD_FLAGS}

.PHONY: pre-commit
pre-commit: clean fmt vet update test

.PHONY: clean
clean:
rm -rf ${BUILD_DIR}
rm -f ${BEAT_NAME}

.PHONY: test
test:
Expand All @@ -24,10 +29,6 @@ fmt:
vet:
go vet ./...

.PHONY: build
build:
go build -o ${BUILD_DIR}/${BEAT_NAME} ${GOBUILD_FLAGS}

.PHONY: update
update:
@echo "TODO: update deps"
Expand Down

0 comments on commit 6aeaf0e

Please sign in to comment.