From 9911098fe70324446d5df1deca8b5f50295266a6 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sat, 6 May 2023 12:18:49 +0000 Subject: [PATCH] Makefile: Use portable `!', not GNUish `-not', with find(1). fix https://github.com/go-gitea/gitea/issues/24564 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5192d2c5a6b37..6a03875b793d5 100644 --- a/Makefile +++ b/Makefile @@ -139,7 +139,7 @@ GO_DIRS := build cmd models modules routers services tests 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)