build: make build the default target when no argument provided (#233)
This commit is contained in:
parent
5f1f252361
commit
20c42dc10d
17
Makefile
17
Makefile
@ -16,6 +16,11 @@ DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bu
|
|||||||
|
|
||||||
export GO111MODULE = on
|
export GO111MODULE = on
|
||||||
|
|
||||||
|
# Default target executed when no arguments are given to make.
|
||||||
|
default_target: all
|
||||||
|
|
||||||
|
.PHONY: default_target
|
||||||
|
|
||||||
# process build tags
|
# process build tags
|
||||||
|
|
||||||
build_tags = netgo
|
build_tags = netgo
|
||||||
@ -92,8 +97,6 @@ ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS)))
|
|||||||
BUILD_FLAGS += -trimpath
|
BUILD_FLAGS += -trimpath
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: tools build lint test
|
|
||||||
|
|
||||||
# # The below include contains the tools and runsim targets.
|
# # The below include contains the tools and runsim targets.
|
||||||
# include contrib/devtools/Makefile
|
# include contrib/devtools/Makefile
|
||||||
|
|
||||||
@ -113,9 +116,6 @@ $(BUILD_TARGETS): go.sum $(BUILDDIR)/
|
|||||||
$(BUILDDIR)/:
|
$(BUILDDIR)/:
|
||||||
mkdir -p $(BUILDDIR)/
|
mkdir -p $(BUILDDIR)/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
# TODO replace with kaniko
|
# TODO replace with kaniko
|
||||||
docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
|
docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
|
||||||
@ -132,7 +132,6 @@ docker-build:
|
|||||||
docker-localnet:
|
docker-localnet:
|
||||||
docker build -f ./networks/local/ethermintnode/Dockerfile . -t ethermintd/node
|
docker build -f ./networks/local/ethermintnode/Dockerfile . -t ethermintd/node
|
||||||
|
|
||||||
|
|
||||||
$(MOCKS_DIR):
|
$(MOCKS_DIR):
|
||||||
mkdir -p $(MOCKS_DIR)
|
mkdir -p $(MOCKS_DIR)
|
||||||
|
|
||||||
@ -144,7 +143,11 @@ clean:
|
|||||||
artifacts/ \
|
artifacts/ \
|
||||||
tmp-swagger-gen/
|
tmp-swagger-gen/
|
||||||
|
|
||||||
.PHONY: distclean clean
|
all: build
|
||||||
|
|
||||||
|
build-all: tools build lint test
|
||||||
|
|
||||||
|
.PHONY: distclean clean build-all
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
### Tools & Dependencies ###
|
### Tools & Dependencies ###
|
||||||
|
Loading…
Reference in New Issue
Block a user