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 <anatoli@rainforce.org>
This commit is contained in:
parent
e4e42b28df
commit
a58c59f401
2
Makefile
2
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue