source: CMT/HEAD/mgr/fragments/constituent@ 428

Last change on this file since 428 was 428, checked in by rybkin, 18 years ago

See C.L. 334

  • Property svn:eol-style set to native
File size: 3.8 KB
RevLine 
[2]1#-- start of constituent ------
2
3cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
4
5#--------------------------------------------------------
6
7ifdef cmt_${CONSTITUENT}_has_target_tag
8
9ifdef READONLY
[183]10cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag)_${CONSTITUENT}.make$(cmt_lock_pid)
[198]11cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_${CONSTITUENT}setup.make
[2]12cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
13else
[183]14cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.make
[198]15cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make
[2]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)
[198]33cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}setup.make
[2]34cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
35else
36cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make
[198]37cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make
[2]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"; \
[428]45 $(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
[2]46
47${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
48 @echo "------> (constituents.make) Starting ${CONSTITUENT}"
49 @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}
50 @echo "------> (constituents.make) ${CONSTITUENT} done"
51
52clean :: ${CONSTITUENT}clean
53
54${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
[79]55 @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \
[2]56 echo "------> (constituents.make) Starting ${CONSTITUENT}clean"; \
57 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \
58 fi
59
60## /bin/rm -f $(cmt_local_${CONSTITUENT}_makefile) $(bin)${CONSTITUENT}_dependencies.make
61
62install :: ${CONSTITUENT}install
63
64${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
65 @echo "------> (constituents.make) Starting install ${CONSTITUENT}"
[79]66 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} install
[2]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}"
[79]73 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} uninstall
[2]74 @echo "------> (constituents.make) uninstall ${CONSTITUENT} done"
75
[183]76ifndef PEDANTIC
[2]77.DEFAULT::
78 @echo "------> (constituents.make) Starting $@ ${CONSTITUENT}"
79 @echo Using default action for $@
80 @echo "------> (constituents.make) $@ ${CONSTITUENT} done"
[183]81endif
[2]82
83
84#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.