From a58c59f401f88bd78a78ed859f0741e6da5eb619 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 19 Apr 2020 16:14:56 +0300 Subject: Make `find` ignore dot files There is no need to search for sources in hidden dirs. In my case there are files from development environment that stand in the way. Signed-off-by: Anatoli Babenia --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5b6bcc42f..d4edbd5f7 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ PKG_MANAGER ?= $(shell command -v dnf yum|head -n1) # ~/.local/bin is not in PATH on all systems PRE_COMMIT = $(shell command -v bin/venv/bin/pre-commit ~/.local/bin/pre-commit pre-commit | head -n1) -SOURCES = $(shell find . -name "*.go") +SOURCES = $(shell find . -path './.*' -prune -o -name "*.go") GO_BUILD=$(GO) build # Go module support: set `-mod=vendor` to use the vendored sources -- cgit v1.2.3-54-g00ecf