#-- start of application $(bin)${CONSTITUENT}${application_suffix} :: ${OBJS} $(use_stamps) $(${CONSTITUENT}stamps) requirements $(use_requirements) $(link_echo) $@ $(link_silent) cd $(bin); ${LINKMACRO} -o ${CONSTITUENT}.exe.new ${OBJS} $(use_linkopts) $(${CONSTITUENT}linkopts); mv -f ${CONSTITUENT}.exe.new ${CONSTITUENT}${application_suffix} ### ### Preparing for next management of use_linkopts and auto_imports : ### will use _use_linkopts instead of use_linkopts ### ### $(link_silent) cd $(bin); \ ### ${LINKMACRO} -o ${CONSTITUENT}.exe.new ${OBJS} \ ### $(${CONSTITUENT}_use_linkopts) $(${CONSTITUENT}linkopts); \ ### mv -f ${CONSTITUENT}.exe.new ${CONSTITUENT}${application_suffix} ### $(link_silent) cd $(bin); ${LINKMACRO} -o ${CONSTITUENT}.exe.new ${OBJS} $(${CONSTITUENT}_use_linkopts) $(${CONSTITUENT}linkopts); mv -f ${CONSTITUENT}.exe.new ${CONSTITUENT}${application_suffix} #----------------------------------------------------------------- # # New section for automatic installation # #----------------------------------------------------------------- install_dir = ${CMTINSTALLAREA}/$(tag)/bin ${CONSTITUENT}installname = ${CONSTITUENT}${application_suffix} ${CONSTITUENT} :: ${CONSTITUENT}install install :: ${CONSTITUENT}install ${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname) @if test ! "${CMTINSTALLAREA}" = ""; then\ echo "installation done"; \ fi $(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) @if test ! "${CMTINSTALLAREA}" = ""; then \ CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \ $(cmt_install_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" "$(cmt_installarea_command)" ; \ fi ${CONSTITUENT}clean :: ${CONSTITUENT}uninstall uninstall :: ${CONSTITUENT}uninstall ${CONSTITUENT}uninstall :: @if test ! "${CMTINSTALLAREA}" = ""; then \ CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \ $(cmt_uninstall_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" ; \ fi #-- end of application