[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] | 7 | ifdef use_stamps |
---|
| 8 | # Work around Make errors if stamps files do not exist |
---|
| 9 | $(use_stamps) : |
---|
| 10 | endif |
---|
| 11 | |
---|
[2] | 12 | #----------------------------------------------------------------- |
---|
| 13 | # |
---|
| 14 | # New section for automatic installation |
---|
| 15 | # |
---|
| 16 | #----------------------------------------------------------------- |
---|
| 17 | |
---|
| 18 | install_dir = ${CMTINSTALLAREA}/$(tag)/bin |
---|
| 19 | ${CONSTITUENT}installname = ${CONSTITUENT}${application_suffix} |
---|
| 20 | |
---|
[593] | 21 | ${CONSTITUENT} :: ${CONSTITUENT}install ; |
---|
[2] | 22 | |
---|
[593] | 23 | install :: ${CONSTITUENT}install ; |
---|
[2] | 24 | |
---|
| 25 | ${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname) |
---|
[441] | 26 | ifdef CMTINSTALLAREA |
---|
| 27 | $(echo) "installation done" |
---|
| 28 | endif |
---|
[2] | 29 | |
---|
| 30 | $(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) |
---|
[441] | 31 | ifdef 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)" |
---|
| 38 | endif |
---|
[2] | 39 | |
---|
| 40 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
| 41 | |
---|
[593] | 42 | uninstall :: ${CONSTITUENT}uninstall ; |
---|
[2] | 43 | |
---|
| 44 | ${CONSTITUENT}uninstall :: |
---|
[441] | 45 | ifdef 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)" |
---|
| 51 | endif |
---|
[2] | 52 | |
---|
[441] | 53 | # @echo "------> (${CONSTITUENT}.make) Removing installed files" |
---|
[2] | 54 | #-- end of application |
---|