source: CMT/v1r18p20041201/mgr/fragments/application @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 1.7 KB
Line 
1#-- start of application
2
3$(bin)${CONSTITUENT}${application_suffix} :: ${OBJS} $(use_stamps) $(${CONSTITUENT}stamps) requirements $(use_requirements)
4        $(link_echo) $@
5        $(link_silent) cd $(bin); ${LINKMACRO} -o ${CONSTITUENT}.exe.new ${OBJS} $(use_linkopts) $(${CONSTITUENT}linkopts); mv -f ${CONSTITUENT}.exe.new ${CONSTITUENT}${application_suffix}
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)
21        @if test ! "${CMTINSTALLAREA}" = ""; then\
22          echo "installation done"; \
23        fi
24
25$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
26        @if test ! "${CMTINSTALLAREA}" = ""; then \
27          $(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        fi
34
35##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
36
37uninstall :: ${CONSTITUENT}uninstall
38
39${CONSTITUENT}uninstall ::
40        @echo "------> (${CONSTITUENT}.make) Removing installed files"
41        @if test ! "${CMTINSTALLAREA}" = ""; then \
42          $(cmt_uninstall_action) \
43            -source "`(cd $(bin); pwd)`" \
44            -name "$(${CONSTITUENT}installname)" \
45            -out "$(install_dir)" \
46            -cmtpath "$($(package)_cmtpath)"; \
47        fi
48
49#-- end of application
Note: See TracBrowser for help on using the repository browser.