Add a 'make check' target to the Makefile

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2017-12-21 12:17:33 -08:00
committed by tmarcu
parent 3389b9794b
commit af76e073ca
+4 -1
View File
@@ -29,7 +29,7 @@ gopath:
@echo "Code already in existing GOPATH=${GOPATH}"
endif
.PHONY: all compliant build install clean
.PHONY: all compliant build install clean check
.DEFAULT_GOAL := all
all: compliant build
@@ -52,6 +52,9 @@ install: gopath
install -m 00755 superpack-maker.sh $(DESTDIR)/usr/bin/mixer-superpack-maker.sh
install -D -m 00644 yum.conf.in $(DESTDIR)/usr/share/defaults/mixer/yum.conf.in
check: gopath
go test ${GO_PACKAGE_PREFIX}/...
clean:
ifeq (,${LOCAL_GOPATH})
go clean -i -x