Skip to content

Commit

Permalink
Exclude _build from ALL_MODULES (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored Oct 4, 2024
1 parent 9a10bcc commit c3a971a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ include ./Makefile.Common
ALL_DOC := $(shell find . \( -name "*.md" -o -name "*.yaml" \) \
-type f | sort)

# ALL_MODULES includes ./* dirs (excludes . dir)
ALL_MODULES := $(shell find . -type f -name "go.mod" -exec dirname {} \; | sort | grep -E '^./' )
# ALL_MODULES includes ./* dirs with a go.mod file (excludes . and ./_build dirs)
ALL_MODULES := $(shell find . -type f -name "go.mod" -not -wholename "./go.mod" -not -wholename "./_build/*" -exec dirname {} \; | sort )

GROUP ?= all
FOR_GROUP_TARGET=for-$(GROUP)-target
Expand Down

0 comments on commit c3a971a

Please sign in to comment.