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
Line 
1#-- start of application
2
3$(bin)${CONSTITUENT}${application_suffix} :: ${OBJS} $(use_stamps) $(${CONSTITUENT}_stamps) $(${CONSTITUENT}stamps) $(use_requirements)
4        $(link_echo) "application $@"
5        $(link_silent) ${LINKMACRO} -o $(@).new ${OBJS} $(cmt_installarea_linkopts) $(${CONSTITUENT}_use_linkopts) $(${CONSTITUENT}linkopts) && mv -f $(@).new $(@)
6
7ifdef use_stamps
8# Work around Make errors if stamps files do not exist
9$(use_stamps) :
10endif
11
12#-----------------------------------------------------------------
13#
14#  New section for automatic installation
15#
16#-----------------------------------------------------------------
17
18install_dir = ${CMTINSTALLAREA}/$(tag)/bin
19${CONSTITUENT}installname = ${CONSTITUENT}${application_suffix}
20
21${CONSTITUENT} :: ${CONSTITUENT}install ;
22
23install :: ${CONSTITUENT}install ;
24
25${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
26ifdef CMTINSTALLAREA
27        $(echo) "installation done"
28endif
29
30$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
31ifdef CMTINSTALLAREA
32        $(install_silent) $(cmt_install_action) \
33            -source "`(cd $(bin); pwd)`" \
34            -name "$(${CONSTITUENT}installname)" \
35            -out "$(install_dir)" \
36            -cmd "$(cmt_installarea_command)" \
37            -cmtpath "$($(package)_cmtpath)"
38endif
39
40##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
41
42uninstall :: ${CONSTITUENT}uninstall ;
43
44${CONSTITUENT}uninstall ::
45ifdef CMTINSTALLAREA
46        $(cleanup_silent) $(cmt_uninstall_action) \
47            -source "`(cd $(bin); pwd)`" \
48            -name "$(${CONSTITUENT}installname)" \
49            -out "$(install_dir)" \
50            -cmtpath "$($(package)_cmtpath)"
51endif
52
53#       @echo "------> (${CONSTITUENT}.make) Removing installed files"
54#-- end of application
Note: See TracBrowser for help on using the repository browser.