source: CMT/HEAD/mgr/fragments/application @ 588

Last change on this file since 588 was 484, checked in by rybkin, 16 years ago

See C.L. 379

  • Property svn:eol-style set to native
File size: 1.6 KB
RevLine 
[2]1#-- start of application
2
[484]3$(bin)${CONSTITUENT}${application_suffix} :: ${OBJS} $(use_stamps) $(${CONSTITUENT}_stamps) $(${CONSTITUENT}stamps) $(use_requirements)
[441]4        $(link_echo) "application $@"
[469]5        $(link_silent) ${LINKMACRO} -o $(@).new ${OBJS} $(cmt_installarea_linkopts) $(${CONSTITUENT}_use_linkopts) $(${CONSTITUENT}linkopts) && mv -f $(@).new $(@)
[2]6
7#-----------------------------------------------------------------
8#
9#  New section for automatic installation
10#
11#-----------------------------------------------------------------
12
13install_dir = ${CMTINSTALLAREA}/$(tag)/bin
14${CONSTITUENT}installname = ${CONSTITUENT}${application_suffix}
15
16${CONSTITUENT} :: ${CONSTITUENT}install
17
18install :: ${CONSTITUENT}install
19
20${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
[441]21ifdef CMTINSTALLAREA
22        $(echo) "installation done"
23endif
[2]24
25$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
[441]26ifdef CMTINSTALLAREA
27        $(install_silent) $(cmt_install_action) \
[2]28            -source "`(cd $(bin); pwd)`" \
29            -name "$(${CONSTITUENT}installname)" \
30            -out "$(install_dir)" \
31            -cmd "$(cmt_installarea_command)" \
[441]32            -cmtpath "$($(package)_cmtpath)"
33endif
[2]34
35##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
36
37uninstall :: ${CONSTITUENT}uninstall
38
39${CONSTITUENT}uninstall ::
[441]40ifdef CMTINSTALLAREA
41        $(cleanup_silent) $(cmt_uninstall_action) \
[2]42            -source "`(cd $(bin); pwd)`" \
43            -name "$(${CONSTITUENT}installname)" \
44            -out "$(install_dir)" \
[441]45            -cmtpath "$($(package)_cmtpath)"
46endif
[2]47
[441]48#       @echo "------> (${CONSTITUENT}.make) Removing installed files"
[2]49#-- end of application
Note: See TracBrowser for help on using the repository browser.