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