Merge pull request #2537 from nspcc-dev/add-bin-target

Makefile: alias `build` target as `bin`
This commit is contained in:
Roman Khimov 2022-06-06 12:00:41 +03:00 committed by GitHub
commit c6ced9b24a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ IMAGE_REPO=nspccdev/neo-go
# All of the targets are phony here because we don't really use make dependency # All of the targets are phony here because we don't really use make dependency
# tracking for files # tracking for files
.PHONY: build deps image image-latest image-push image-push-latest check-version clean-cluster push-tag \ .PHONY: build bin deps image image-latest image-push image-push-latest check-version clean-cluster push-tag \
test vet lint fmt cover test vet lint fmt cover
build: deps build: deps
@ -32,6 +32,8 @@ build: deps
&& export CGO_ENABLED=0 \ && export CGO_ENABLED=0 \
&& go build -trimpath -v -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go && go build -trimpath -v -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go
bin: build
neo-go.service: neo-go.service.template neo-go.service: neo-go.service.template
@sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@ @sed -r -e 's_BINDIR_$(BINDIR)_' -e 's_UNITWORKDIR_$(UNITWORKDIR)_' -e 's_SYSCONFIGDIR_$(SYSCONFIGDIR)_' $< >$@