source: CMT/v1r25-branch/mgr/fragments/application @ 646

Last change on this file since 646 was 646, checked in by rybkin, 11 years ago

merge -r 635:645 HEAD

  • Property svn:eol-style set to native
File size: 1.7 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
[646]7ifdef use_stamps
8# Work around Make errors if stamps files do not exist
9$(use_stamps) :
10endif
11
[2]12#-----------------------------------------------------------------
13#
14#  New section for automatic installation
15#
16#-----------------------------------------------------------------
17
18install_dir = ${CMTINSTALLAREA}/$(tag)/bin
19${CONSTITUENT}installname = ${CONSTITUENT}${application_suffix}
20
[593]21${CONSTITUENT} :: ${CONSTITUENT}install ;
[2]22
[593]23install :: ${CONSTITUENT}install ;
[2]24
25${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
[441]26ifdef CMTINSTALLAREA
27        $(echo) "installation done"
28endif
[2]29
30$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
[441]31ifdef CMTINSTALLAREA
32        $(install_silent) $(cmt_install_action) \
[2]33            -source "`(cd $(bin); pwd)`" \
34            -name "$(${CONSTITUENT}installname)" \
35            -out "$(install_dir)" \
36            -cmd "$(cmt_installarea_command)" \
[441]37            -cmtpath "$($(package)_cmtpath)"
38endif
[2]39
40##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
41
[593]42uninstall :: ${CONSTITUENT}uninstall ;
[2]43
44${CONSTITUENT}uninstall ::
[441]45ifdef CMTINSTALLAREA
46        $(cleanup_silent) $(cmt_uninstall_action) \
[2]47            -source "`(cd $(bin); pwd)`" \
48            -name "$(${CONSTITUENT}installname)" \
49            -out "$(install_dir)" \
[441]50            -cmtpath "$($(package)_cmtpath)"
51endif
[2]52
[441]53#       @echo "------> (${CONSTITUENT}.make) Removing installed files"
[2]54#-- end of application
Note: See TracBrowser for help on using the repository browser.