mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-23 01:14:46 +07:00
chore: fix make with /bin/sh (#129)
This commit is contained in:
parent
812dd839f1
commit
9c632aa8ca
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -11,6 +11,7 @@ on:
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
- ".github/workflows/build.yml"
|
||||
- "Makefile"
|
||||
release:
|
||||
types: [ prereleased ]
|
||||
pull_request:
|
||||
|
8
Makefile
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user