Skip to content

Commit 54e6823

Browse files
committed
Use proper find for sources dependencies in Makefile
1 parent c4431ef commit 54e6823

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ else
1515
VERSION:=$(shell sh -c 'git describe --always --tags | sed -e "s/^v//i"')
1616
endif
1717

18+
SRCS:=$(shell find . -name '*.go')
19+
1820
all: $(NAME)
1921

2022
.PHONY: clean
@@ -24,7 +26,7 @@ clean:
2426
rm -f *deb *rpm
2527
rm -f sha256sum md5sum
2628

27-
$(NAME): $(shell find . -name '*.go')
29+
$(NAME): $(SRCS)
2830
$(GO) build $(MODULE)
2931

3032
e2e-test: $(NAME)

0 commit comments

Comments
 (0)