Commit 04e540f4 authored by gsell's avatar gsell

Merge branch '72-modbuild-system-and-os-specific-targets' into 'master'

Resolve "modbuild: system and OS specific targets"

Closes #72

See merge request !37
parents 0dff5d58 593d0035
......@@ -837,7 +837,13 @@ pbuild::make_all() {
fi
local targets=()
targets+=( "pre_${target}_${system}" "pre_${target}_${OS}" "pre_${target}" )
targets+=( "${target}" )
if typeset -F pbuild::${target}_${system} 1>/dev/null 2>&1; then
targets+=( "${target}_${system}" )
elif typeset -F pbuild::${target}_${OS} 1>/dev/null 2>&1; then
targets+=( "${target}_${OS}" )
else
targets+=( "${target}" )
fi
targets+=( "post_${target}_${system}" "post_${target}_${OS}" "post_${target}" )
for t in "${targets[@]}"; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment