source: CMT/v1r14p20031120/fragments/application @ 1

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

Import all tags

File size: 2.1 KB
Line 
1#-- start of application
2
3$(bin)${CONSTITUENT}${application_suffix} :: ${OBJS} $(use_stamps) $(${CONSTITUENT}stamps)
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### Preparing for next management of use_linkopts and auto_imports :
9###  will use  <constituent>_use_linkopts instead of use_linkopts
10###
11###    $(link_silent) cd $(bin); \
12###      ${LINKMACRO} -o ${CONSTITUENT}.exe.new ${OBJS} \
13###      $(${CONSTITUENT}_use_linkopts) $(${CONSTITUENT}linkopts); \
14###      mv -f ${CONSTITUENT}.exe.new ${CONSTITUENT}${application_suffix}
15###      $(link_silent) cd $(bin); ${LINKMACRO} -o ${CONSTITUENT}.exe.new ${OBJS} $(${CONSTITUENT}_use_linkopts) $(${CONSTITUENT}linkopts); mv -f ${CONSTITUENT}.exe.new ${CONSTITUENT}${application_suffix}
16
17
18
19#-----------------------------------------------------------------
20#
21#  New section for automatic installation
22#
23#-----------------------------------------------------------------
24
25install_dir = ${CMTINSTALLAREA}/$(tag)/bin
26${CONSTITUENT}installname = ${CONSTITUENT}${application_suffix}
27
28${CONSTITUENT} :: ${CONSTITUENT}install
29
30install :: ${CONSTITUENT}install
31
32${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
33        @if test ! "${CMTINSTALLAREA}" = ""; then\
34          echo "installation done"; \
35        fi
36
37$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
38        if test ! "${CMTINSTALLAREA}" = ""; then \
39          CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \
40          $(cmt_install_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" "$(cmt_install_area_command)" ; \
41        fi
42
43${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
44
45uninstall :: ${CONSTITUENT}uninstall
46
47${CONSTITUENT}uninstall ::
48        @if test ! "${CMTINSTALLAREA}" = ""; then \
49          CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \
50          $(cmt_uninstall_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" ; \
51        fi
52
53#-- end of application
Note: See TracBrowser for help on using the repository browser.