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_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make |
---|
16 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make |
---|
17 | endif |
---|
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 | |
---|
29 | else |
---|
30 | |
---|
31 | ifdef READONLY |
---|
32 | cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid) |
---|
33 | cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}setup.make |
---|
34 | cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make |
---|
35 | else |
---|
36 | cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make |
---|
37 | cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make |
---|
38 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make |
---|
39 | endif |
---|
40 | |
---|
41 | endif |
---|
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 -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} |
---|
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 | |
---|
52 | clean :: ${CONSTITUENT}clean |
---|
53 | |
---|
54 | ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) |
---|
55 | @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \ |
---|
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 | |
---|
62 | install :: ${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 | |
---|
69 | uninstall :: ${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 | ifndef PEDANTIC |
---|
77 | .DEFAULT:: |
---|
78 | @echo "------> (constituents.make) Starting $@ ${CONSTITUENT}" |
---|
79 | @echo Using default action for $@ |
---|
80 | @echo "------> (constituents.make) $@ ${CONSTITUENT} done" |
---|
81 | endif |
---|
82 | |
---|
83 | |
---|
84 | #-- end of constituent ------ |
---|