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 | |
---|
13 | install_dir = ${CMTINSTALLAREA}/$(tag)/bin |
---|
14 | ${CONSTITUENT}installname = ${CONSTITUENT}${application_suffix} |
---|
15 | |
---|
16 | ${CONSTITUENT} :: ${CONSTITUENT}install ; |
---|
17 | |
---|
18 | install :: ${CONSTITUENT}install ; |
---|
19 | |
---|
20 | ${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname) |
---|
21 | ifdef CMTINSTALLAREA |
---|
22 | $(echo) "installation done" |
---|
23 | endif |
---|
24 | |
---|
25 | $(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) |
---|
26 | ifdef 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)" |
---|
33 | endif |
---|
34 | |
---|
35 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
36 | |
---|
37 | uninstall :: ${CONSTITUENT}uninstall ; |
---|
38 | |
---|
39 | ${CONSTITUENT}uninstall :: |
---|
40 | ifdef CMTINSTALLAREA |
---|
41 | $(cleanup_silent) $(cmt_uninstall_action) \ |
---|
42 | -source "`(cd $(bin); pwd)`" \ |
---|
43 | -name "$(${CONSTITUENT}installname)" \ |
---|
44 | -out "$(install_dir)" \ |
---|
45 | -cmtpath "$($(package)_cmtpath)" |
---|
46 | endif |
---|
47 | |
---|
48 | # @echo "------> (${CONSTITUENT}.make) Removing installed files" |
---|
49 | #-- end of application |
---|