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

Last change on this file since 183 was 183, checked in by garonne, 20 years ago

see CL 305

  • 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)
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
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)
[183]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
[183]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"; \
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)
[79]56 @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \
[2]57 echo "------> (constituents.make) Starting ${CONSTITUENT}clean"; \
58 $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \
59 fi
60
61## /bin/rm -f $(cmt_local_${CONSTITUENT}_makefile) $(bin)${CONSTITUENT}_dependencies.make
62
63install :: ${CONSTITUENT}install
64
65${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
66 @echo "------> (constituents.make) Starting install ${CONSTITUENT}"
[79]67 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} install
[2]68 @echo "------> (constituents.make) install ${CONSTITUENT} done"
69
70uninstall :: ${CONSTITUENT}uninstall
71
72${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
73 @echo "------> (constituents.make) Starting uninstall ${CONSTITUENT}"
[79]74 @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) cmt_lock_pid=$${cmt_lock_pid} uninstall
[2]75 @echo "------> (constituents.make) uninstall ${CONSTITUENT} done"
76
[183]77ifndef PEDANTIC
[2]78.DEFAULT::
79 @echo "------> (constituents.make) Starting $@ ${CONSTITUENT}"
80 @echo Using default action for $@
81 @echo "------> (constituents.make) $@ ${CONSTITUENT} done"
[183]82endif
[2]83
84
85#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.