From: Giteabot Date: Sun, 7 May 2023 11:30:13 +0000 (-0400) Subject: Makefile: Use portable !, not GNUish -not, with find(1). (#24565) (#24572) X-Git-Tag: v1.19.4~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f57be0025ed07719dc354c7c3251619af1d2552;p=gitea.git Makefile: Use portable !, not GNUish -not, with find(1). (#24565) (#24572) Backport #24565 by @riastradh fix https://github.com/go-gitea/gitea/issues/24564 Co-authored-by: Taylor R Campbell --- diff --git a/Makefile b/Makefile index 65551ef3ec..07b9f56732 100644 --- a/Makefile +++ b/Makefile @@ -140,7 +140,7 @@ GO_DIRS := cmd tests models modules routers build services tools WEB_DIRS := web_src/js web_src/css GO_SOURCES := $(wildcard *.go) -GO_SOURCES += $(shell find $(GO_DIRS) -type f -name "*.go" -not -path modules/options/bindata.go -not -path modules/public/bindata.go -not -path modules/templates/bindata.go) +GO_SOURCES += $(shell find $(GO_DIRS) -type f -name "*.go" ! -path modules/options/bindata.go ! -path modules/public/bindata.go ! -path modules/templates/bindata.go) GO_SOURCES += $(GENERATED_GO_DEST) GO_SOURCES_NO_BINDATA := $(GO_SOURCES)