source: CMT/v1r16p20040901/fragments/library_no_share @ 1

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

Import all tags

File size: 1.9 KB
Line 
1#-- start of library_no_share ------
2
3${CONSTITUENT}LIB :: $(${CONSTITUENT}lib)
4        @/bin/echo ${CONSTITUENT} : library ok
5
6$(${CONSTITUENT}lib) :: ${OBJS}
7        $(lib_echo) library
8        $(lib_silent) cd $(bin); \
9          $(ar) $(${CONSTITUENT}lib) $?
10        $(lib_silent) $(ranlib) $(${CONSTITUENT}lib)
11        $(lib_silent) cat /dev/null >$(${CONSTITUENT}stamp)
12
13#------------------------------------------------------------------
14#  Future improvement? to empty the object files after
15#  storing in the library
16#
17##        for f in $?; do \
18##          rm $${f}; touch $${f}; \
19##        done
20#------------------------------------------------------------------
21
22#-----------------------------------------------------------------
23#
24#  New section for automatic installation
25#
26#-----------------------------------------------------------------
27
28install_dir = ${CMTINSTALLAREA}/$(tag)/lib
29${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).a
30
31${CONSTITUENT} :: ${CONSTITUENT}install
32
33install :: ${CONSTITUENT}install
34
35${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
36        @if test ! "${CMTINSTALLAREA}" = ""; then\
37          echo "installation done"; \
38        fi
39
40$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
41        @if test ! "${CMTINSTALLAREA}" = ""; then \
42          CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \
43          $(cmt_install_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" "$(cmt_installarea_command)" ; \
44        fi
45
46${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
47
48uninstall :: ${CONSTITUENT}uninstall
49
50${CONSTITUENT}uninstall ::
51        @if test ! "${CMTINSTALLAREA}" = ""; then \
52          CMTINSTALLAREA=${CMTINSTALLAREA}; export CMTINSTALLAREA; \
53          $(cmt_uninstall_action) "$(PACKAGE_ROOT)/$(tag)" "$(${CONSTITUENT}installname)" "$(install_dir)" ; \
54        fi
55
56${CONSTITUENT}clean ::
57        $(cleanup_echo) ${OBJS}
58        $(cleanup_silent) cd $(bin); /bin/rm -f ${OBJS}
59
60#-- end of library_no_share ------
Note: See TracBrowser for help on using the repository browser.