mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-01-31 10:41:34 +00:00
new all function: ./all -c compile, does "make clean" too
This commit is contained in:
parent
c035255f5a
commit
7bb1263341
31
all
31
all
@ -405,6 +405,15 @@ case "$cmd" in
|
||||
else
|
||||
TARGETS="sv-debug cl-debug sdl-debug"
|
||||
fi
|
||||
case "$1" in
|
||||
-c)
|
||||
clean=true
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
clean=false
|
||||
;;
|
||||
esac
|
||||
case "$1" in
|
||||
sdl)
|
||||
TARGETS="sdl-debug"
|
||||
@ -426,14 +435,28 @@ case "$cmd" in
|
||||
MAKEFLAGS=-j$ncpus
|
||||
fi
|
||||
fi
|
||||
case "`uname`" in
|
||||
Linux|*BSD)
|
||||
MAKEFLAGS="$MAKEFLAGS DP_LINK_TO_LIBJPEG=1"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
enter "$d0/fteqcc" verbose
|
||||
if $clean; then
|
||||
verbose make $MAKEFLAGS clean
|
||||
fi
|
||||
verbose make $MAKEFLAGS
|
||||
enter "$d0/data/xonotic-data.pk3dir" verbose
|
||||
verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" $MAKEFLAGS
|
||||
if $clean; then
|
||||
verbose make $MAKEFLAGS clean
|
||||
fi
|
||||
verbose make FTEQCC="$d0/fteqcc/fteqcc.bin" "$@" $MAKEFLAGS
|
||||
enter "$d0/darkplaces" verbose
|
||||
if $clean; then
|
||||
verbose make $MAKEFLAGS clean
|
||||
fi
|
||||
for T in $TARGETS; do
|
||||
verbose make $MAKEFLAGS "$T"
|
||||
verbose make $MAKEFLAGS "$@" "$T"
|
||||
done
|
||||
;;
|
||||
run)
|
||||
@ -579,8 +602,8 @@ case "$cmd" in
|
||||
echo " $SELF branch [<remote>] <branchname>"
|
||||
echo " $SELF branch <remote> <branchname> <srcbranchname>"
|
||||
echo " $SELF checkout [<remote>] <branchname>"
|
||||
echo " $SELF compile"
|
||||
echo " $SELF run <client> <options>"
|
||||
echo " $SELF compile [-c] [<client>] <options>"
|
||||
echo " $SELF run [<client>] <options>"
|
||||
echo " $SELF each <command>"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user