[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 | |
---|
| 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) |
---|
[441] | 21 | ifdef CMTINSTALLAREA |
---|
| 22 | $(echo) "installation done" |
---|
| 23 | endif |
---|
[2] | 24 | |
---|
| 25 | $(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname) |
---|
[441] | 26 | ifdef CMTINSTALLAREA |
---|
| 27 | $(install_silent) $(cmt_install_action) \ |
---|
[2] | 28 | -source "`(cd $(bin); pwd)`" \ |
---|
| 29 | -name "$(${CONSTITUENT}installname)" \ |
---|
| 30 | -out "$(install_dir)" \ |
---|
| 31 | -cmd "$(cmt_installarea_command)" \ |
---|
[441] | 32 | -cmtpath "$($(package)_cmtpath)" |
---|
| 33 | endif |
---|
[2] | 34 | |
---|
| 35 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
| 36 | |
---|
| 37 | uninstall :: ${CONSTITUENT}uninstall |
---|
| 38 | |
---|
| 39 | ${CONSTITUENT}uninstall :: |
---|
[441] | 40 | ifdef CMTINSTALLAREA |
---|
| 41 | $(cleanup_silent) $(cmt_uninstall_action) \ |
---|
[2] | 42 | -source "`(cd $(bin); pwd)`" \ |
---|
| 43 | -name "$(${CONSTITUENT}installname)" \ |
---|
| 44 | -out "$(install_dir)" \ |
---|
[441] | 45 | -cmtpath "$($(package)_cmtpath)" |
---|
| 46 | endif |
---|
[2] | 47 | |
---|
[441] | 48 | # @echo "------> (${CONSTITUENT}.make) Removing installed files" |
---|
[2] | 49 | #-- end of application |
---|