build: make build the default target when no argument provided (#233)

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