diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6018de5..c47176c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ on: - "go.mod" - "go.sum" - ".github/workflows/build.yml" + - "Makefile" release: types: [ prereleased ] pull_request: diff --git a/Makefile b/Makefile index 2aeae08..aa40f33 100644 --- a/Makefile +++ b/Makefile @@ -46,9 +46,9 @@ dae: ebpf ## Begin Git Submodules .gitmodules.d.mk: .gitmodules - @set -e -o pipefail && \ - submodules=( $$(grep '\[submodule "' .gitmodules | cut -d'"' -f2) ) && \ - echo "submodule_paths=$${submodules[@]}" > $@ + @set -e && \ + submodules=$$(grep '\[submodule "' .gitmodules | cut -d'"' -f2 | tr '\n' ' ') && \ + echo "submodule_paths=$${submodules}" > $@ -include .gitmodules.d.mk @@ -58,7 +58,7 @@ $(submodule_paths): .gitmodules.d.mk submodule submodules: $(submodule_paths) @if [ -z "$(submodule_paths)" ]; then \ - rm -f .gitmodules.mk; \ + rm -f .gitmodules.d.mk; \ echo "Failed to generate submodules list. Please try again."; \ exit 1; \ fi