1 | #-- start of constituents_header ------ |
---|
2 | |
---|
3 | include ${CMTROOT}/src/Makefile.core |
---|
4 | |
---|
5 | ifdef tag |
---|
6 | CMTEXTRATAGS = $(tag) |
---|
7 | else |
---|
8 | tag = $(CMTCONFIG) |
---|
9 | endif |
---|
10 | |
---|
11 | tags = $(CMTCONFIG),$(CMTEXTRATAGS) |
---|
12 | |
---|
13 | ${PACKAGE}_tag = $(tag) |
---|
14 | |
---|
15 | #-------------------------------------------------------- |
---|
16 | |
---|
17 | cmt_lock_setup = /tmp/lock$(cmt_lock_pid).make |
---|
18 | cmt_temp_tag = /tmp/tag$(cmt_lock_pid).make |
---|
19 | cmt_setup_pid = $(bin)${PACKAGE}setup$(cmt_lock_pid).make |
---|
20 | |
---|
21 | first :: $(${PACKAGE}_tag).make |
---|
22 | @echo $(${PACKAGE}_tag).make ok |
---|
23 | |
---|
24 | $(${PACKAGE}_tag).make : $(cmt_lock_setup) |
---|
25 | @/bin/echo "------> (constituents.make) Rebuilding setup.make $(${PACKAGE}_tag).make" |
---|
26 | @if test -f $(${PACKAGE}_tag).make; then /bin/rm -f $(${PACKAGE}_tag).make; fi ; \ |
---|
27 | $(cmtexe) -quiet -tag=$(tags) build tag_makefile >$(cmt_temp_tag) ; \ |
---|
28 | mv $(cmt_temp_tag) $(${PACKAGE}_tag).make; \ |
---|
29 | if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \ |
---|
30 | if test -f $(cmt_setup_pid); then /bin/rm -f $(cmt_setup_pid); fi; \ |
---|
31 | echo $(CMTCONFIG); \ |
---|
32 | $(cmtexe) -quiet -tag=$(tags) show setup >>$(cmt_setup_pid); \ |
---|
33 | /bin/mv $(cmt_setup_pid) $(bin)${PACKAGE}setup.make |
---|
34 | @/bin/echo setup.make ok |
---|
35 | |
---|
36 | -include $(${PACKAGE}_tag).make |
---|
37 | |
---|
38 | config :: checkuses ##$(${PACKAGE}_tag).make |
---|
39 | @exit 0 |
---|
40 | |
---|
41 | env.make :: |
---|
42 | printenv >env.make.tmp; $(cmtexe) -quiet check files env.make.tmp env.make |
---|
43 | |
---|
44 | all :: build_library_links |
---|
45 | @echo "------> (constituents.make) all done" |
---|
46 | |
---|
47 | javadirs :: |
---|
48 | @if test ! -d $(javabin) ; then $(mkdir) -p $(javabin) ; fi |
---|
49 | |
---|
50 | srcdirs :: |
---|
51 | @if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi |
---|
52 | |
---|
53 | dirs :: |
---|
54 | @if test ! -r requirements ; then echo "No requirements file" ; fi; \ |
---|
55 | if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi |
---|
56 | |
---|
57 | build_library_links : dirs requirements |
---|
58 | @echo "------> (constituents.make) Rebuilding library links"; \ |
---|
59 | if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \ |
---|
60 | $(build_library_links) |
---|
61 | |
---|
62 | .DEFAULT :: |
---|
63 | @if test "$@" = "$(cmt_lock_setup)"; then \ |
---|
64 | /bin/rm -f $(cmt_lock_setup); \ |
---|
65 | touch $(cmt_lock_setup); \ |
---|
66 | fi |
---|
67 | |
---|
68 | #-- end of constituents_header ------ |
---|