More @NAME@ -> @CNAME@ fixups.

This commit is contained in:
Laurence Withers 2006-08-09 11:16:18 +01:00
parent 6235444f96
commit a0acfae451
5 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
# These are external variables, and shouldn't clash with anything else
# @NAME@_BUILT
# @CNAME@_BUILT
#
build_target @TEST_LIBS@ || return 1

View File

@ -1,21 +1,21 @@
# These are external variables, and shouldn't clash with anything else
# @NAME@
# @NAME@_BUILT
# @CNAME@
# @CNAME@_BUILT
#
if [ -z ${@NAME@_BUILT} ]
if [ -z ${@CNAME@_BUILT} ]
then
@NAME@="obj/@NAME@"
@CNAME@="obj/@NAME@"
EXTRAS="" # @TODO@ cflags, libs
echo "Building application ${@NAME@}..."
echo "Building application ${@CNAME@}..."
do_cmd source src/@NAME@/build.monolithic || return 1
MODIFIED=0
for test in ${MONOLITHIC_TESTS} ${SRC}
do
if [ ${test} -nt ${@NAME@} ]
if [ ${test} -nt ${@CNAME@} ]
then
MODIFIED=1
break
@ -33,7 +33,7 @@ then
print_success "Application up to date"
fi
@NAME@_BUILT=1
@CNAME@_BUILT=1
fi

View File

@ -5,7 +5,7 @@ build_dir_tree "${BINDIR}" || return 1
# install binary
echo "Installing binaries into '${BINDIR}'"
install_file "${@NAME@}" "${BINDIR}" 0755 || return 1
install_file "${@CNAME@}" "${BINDIR}" 0755 || return 1
print_success "Done"
# kate: @KATE_MODELINE@

View File

@ -1,16 +1,16 @@
# These are external variables, and shouldn't clash with anything else
# @NAME@_MONOLITHIC
# @CNAME@_MONOLITHIC
#
SRC="obj/@NAME@.c"
MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@NAME@_MONOLITHIC}" ]
if [ -z "${@CNAME@_MONOLITHIC}" ]
then
MONOLITHIC_SOURCE="$(echo src/@NAME@/TopSource.c)"
make_monolithic ${SRC} C || return 1
@NAME@_MONOLITHIC=1
@CNAME@_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi

View File

@ -1,5 +1,5 @@
# These are external variables, and shouldn't clash with anything else
# @NAME@_BUILT
# @CNAME@_BUILT
#
build_target @TEST_LIBS@ || return 1