From b3ac3ccf94cbba778c43e8785f958ed3162c98c3 Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Tue, 2 Feb 2016 13:40:10 -0800 Subject: [PATCH] ignore the cmd/testdata dir in the Makefile testdata won't ever be producing a binary, and "testdata" is a fairly common name to find in Go projects for the tests to use, so just ignore it. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 674afe594..06ccdcec1 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ VERSION ?= 1.0.0 EPOCH ?= 1 MAINTAINER ?= "Community" -CMDS = $(shell find ./cmd -maxdepth 1 -mindepth 1 -type d) +CMDS = $(shell find ./cmd -maxdepth 1 -mindepth 1 -type d | grep -v testdata) CMD_BASENAMES = $(shell echo $(CMDS) | xargs -n1 basename) CMD_BINS = $(addprefix $(OBJDIR)/, $(CMD_BASENAMES) ) OBJECTS = $(CMD_BINS)