1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/kubectl/kubectl.conf
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
15 var_append makeopt ' ' 'kubectl gendocs genman genyaml'
16 var_remove GCC_WRAPPER_REMOVE ' ' '-gdwarf*'
19 local taropt_orig="$taropt"
20 mkdir -p "${xsrctar%%.tar*}"
21 taropt="-C ${xsrctar%%.tar*} $taropt_orig"
25 custextract='kubectl_extract'
28 mkdir -p docs/{man/man1,user-guide/kubectl,yaml/kubectl}
29 ./_output/bin/gendocs "docs/user-guide/kubectl/"
30 ./_output/bin/genman "docs/man/man1/" "kubectl"
31 ./_output/bin/genyaml "docs/yaml/kubectl/"
33 hook_add inmake 5 'kubectl_docs'
36 install -Dm 755 _output/bin/kubectl $root$bindir/
37 install -Dm 644 docs/man/man1/kubectl* -t $root$mandir/man1/
39 hook_add postmake 5 'kubectl_install'