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

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

See C.L. 379

  • Property svn:eol-style set to native
File size: 1.6 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
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)
21ifdef CMTINSTALLAREA
22        $(echo) "installation done"
23endif
24
25$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
26ifdef CMTINSTALLAREA
27        $(install_silent) $(cmt_install_action) \
28            -source "`(cd $(bin); pwd)`" \
29            -name "$(${CONSTITUENT}installname)" \
30            -out "$(install_dir)" \
31            -cmd "$(cmt_installarea_command)" \
32            -cmtpath "$($(package)_cmtpath)"
33endif
34
35##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
36
37uninstall :: ${CONSTITUENT}uninstall
38
39${CONSTITUENT}uninstall ::
40ifdef CMTINSTALLAREA
41        $(cleanup_silent) $(cmt_uninstall_action) \
42            -source "`(cd $(bin); pwd)`" \
43            -name "$(${CONSTITUENT}installname)" \
44            -out "$(install_dir)" \
45            -cmtpath "$($(package)_cmtpath)"
46endif
47
48#       @echo "------> (${CONSTITUENT}.make) Removing installed files"
49#-- end of application
Note: See TracBrowser for help on using the repository browser.