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 # These are external variables, and shouldn't clash with anything else
# @NAME@_BUILT # @CNAME@_BUILT
# #
build_target @TEST_LIBS@ || return 1 build_target @TEST_LIBS@ || return 1

View File

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

View File

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

View File

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

View File

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