source: CMT/v1r16p20040901/fragments/constituent @ 1

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

Import all tags

File size: 3.9 KB
Line 
1#-- start of constituent ------
2
3cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
4
5#--------------------------------------------------------
6
7ifdef cmt_${CONSTITUENT}_has_target_tag
8
9ifdef READONLY
10cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag)_${CONSTITUENT}.make$(cmt_lock_pid)
11cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_${CONSTITUENT}_setup.make
12cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
13else
14cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.make
15cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.make
16cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make
17endif
18
19${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
20
21$(cmt_local_tagfile_${CONSTITUENT}) : $(cmt_lock_setup)
22        @/bin/echo "------> (constituents.make) Rebuilding setup.make $(cmt_local_tagfile_${CONSTITUENT})"
23        @if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \
24          $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \
25          if test -f $(cmt_final_setup_${CONSTITUENT}); then /bin/rm -f $(cmt_final_setup_${CONSTITUENT}); fi; \
26          $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT})
27        @/bin/echo setup.make ok
28
29else
30
31ifdef READONLY
32cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid)
33cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_setup.make
34cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
35else
36cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make
37cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.make
38cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make
39endif
40
41endif
42
43$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs
44        @echo "------> (constituents.make) Building ${CONSTITUENT}.make"; \
45          $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile ${CONSTITUENT} ; \
46          if test ! "$(bin)" = "./"; then /bin/mv -f ${CONSTITUENT}.make $(cmt_local_${CONSTITUENT}_makefile); fi
47
48${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
49        @echo "------> (constituents.make) Starting ${CONSTITUENT}"
50        @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}
51        @echo "------> (constituents.make) ${CONSTITUENT} done"
52
53clean :: ${CONSTITUENT}clean
54
55${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
56        @if test -f $(cmt_local_${CONSTITUENT}_makefile); then \
57          echo "------> (constituents.make) Starting ${CONSTITUENT}clean"; \
58          $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \
59          /bin/rm -f $(cmt_local_${CONSTITUENT}_makefile) $(bin)${CONSTITUENT}_dependencies.make; \
60        fi
61
62install :: ${CONSTITUENT}install
63
64${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
65        @echo "------> (constituents.make) Starting install ${CONSTITUENT}"
66        @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} install
67        @echo "------> (constituents.make) install ${CONSTITUENT} done"
68
69uninstall :: ${CONSTITUENT}uninstall
70
71${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
72        @echo "------> (constituents.make) Starting uninstall ${CONSTITUENT}"
73        @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} uninstall
74        @echo "------> (constituents.make) uninstall ${CONSTITUENT} done"
75
76.DEFAULT::
77        @echo "------> (constituents.make) Starting $@ ${CONSTITUENT}"
78        @echo Using default action for $@
79        @echo "------> (constituents.make) $@ ${CONSTITUENT} done"
80
81
82#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.