Skip to content

Commit

Permalink
Makefile: Use portable !, not GNUish -not, with find(1). (go-gitea#24565
Browse files Browse the repository at this point in the history
) (go-gitea#24572)

Backport go-gitea#24565 by @riastradh

fix go-gitea#24564

Co-authored-by: Taylor R Campbell <campbell+gitea@mumble.net>
  • Loading branch information
GiteaBot and Taylor R Campbell committed May 7, 2023
1 parent 2572879 commit 6f57be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6f57be0

Please sign in to comment.