Add support for './make.sh <module>'
This commit is contained in:
parent
33cd0e4daf
commit
cffa0b8b48
10
skel/make.sh
10
skel/make.sh
|
@ -225,7 +225,12 @@ install_symlink() {
|
|||
|
||||
|
||||
build_target() {
|
||||
ITEMS="$(find src -type f -name build.$1)"
|
||||
ITEMS="src/$1/build.default"
|
||||
if [ ! -e "${ITEM}" ]
|
||||
then
|
||||
ITEMS="$(find src -type f -name build.$1)"
|
||||
fi
|
||||
|
||||
if [ -z "${ITEMS}" ]
|
||||
then
|
||||
print_failure "Unrecognised target '$1'"
|
||||
|
@ -274,3 +279,6 @@ do
|
|||
done
|
||||
|
||||
exit 0
|
||||
|
||||
# kate: replace-trailing-space-save true; space-indent true; tab-width 4;
|
||||
# vim: expandtab:ts=4:sw=4
|
||||
|
|
Loading…
Reference in New Issue