source: CMT/HEAD/mgr/fragments/constituents_header @ 614

Last change on this file since 614 was 614, checked in by rybkin, 12 years ago

See C.L. 489

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1
2#-- start of constituents_header ------
3
4include ${CMTROOT}/src/Makefile.core
5
6ifdef tag
7CMTEXTRATAGS = $(tag)
8else
9tag       = $(CMTCONFIG)
10endif
11
12tags      = $(tag),$(CMTEXTRATAGS)
13
14${PACKAGE}_tag = $(tag)
15
16#cmt_local_tagfile = $(${PACKAGE}_tag).make
17cmt_local_tagfile = $(bin)$(${PACKAGE}_tag).make
18
19#-include $(cmt_local_tagfile)
20include $(cmt_local_tagfile)
21
22#cmt_local_setup = $(bin)setup$$$$.make
23#cmt_local_setup = $(bin)$(package)setup$$$$.make
24#cmt_final_setup = $(bin)${PACKAGE}setup.make
25cmt_final_setup = $(bin)setup.make
26#cmt_final_setup = $(bin)$(package)setup.make
27
28cmt_build_library_linksstamp = $(bin)cmt_build_library_links.stamp
29#--------------------------------------------------------
30
31#cmt_lock_setup = /tmp/lock$(cmt_lock_pid).make
32#cmt_temp_tag = /tmp/tag$(cmt_lock_pid).make
33
34#first :: $(cmt_local_tagfile)
35#       @echo $(cmt_local_tagfile) ok
36#ifndef QUICK
37#first :: $(cmt_final_setup) ;
38#else
39#first :: ;
40#endif
41
42##      @bin=`$(cmtexe) show macro_value bin`
43
44#$(cmt_local_tagfile) : $(cmt_lock_setup)
45#       @echo "#CMT> Error: $@: No such file" >&2; exit 1
46#$(cmt_local_tagfile) :
47#       @echo "#CMT> Warning: $@: No such file" >&2; exit
48#       @echo "#CMT> Info: $@: No need to rebuild file" >&2; exit
49
50#$(cmt_final_setup) : $(cmt_local_tagfile)
51#       $(echo) "(constituents.make) Rebuilding $@"
52#       @if test ! -d $(@D); then $(mkdir) -p $(@D); fi; \
53#         if test -f $(cmt_local_setup); then /bin/rm -f $(cmt_local_setup); fi; \
54#         trap '/bin/rm -f $(cmt_local_setup)' 0 1 2 15; \
55#         $(cmtexe) -tag=$(tags) show setup >>$(cmt_local_setup); \
56#         if test ! -f $@; then \
57#           mv $(cmt_local_setup) $@; \
58#         else \
59#           if /usr/bin/diff $(cmt_local_setup) $@ >/dev/null ; then \
60#             : ; \
61#           else \
62#             mv $(cmt_local_setup) $@; \
63#           fi; \
64#         fi
65
66#       @/bin/echo $@ ok   
67
68#config :: checkuses
69#       @exit 0
70#checkuses : ;
71
72env.make ::
73        printenv >env.make.tmp; $(cmtexe) check files env.make.tmp env.make
74
75ifndef QUICK
76all :: build_library_links ;
77else
78all :: $(cmt_build_library_linksstamp) ;
79endif
80
81javadirs ::
82        @if test ! -d $(javabin) ; then $(mkdir) -p $(javabin) ; fi
83
84srcdirs ::
85        @if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi
86
87dirs :: requirements
88        @if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi
89#       @if test ! -r requirements ; then echo "No requirements file" ; fi; \
90#         if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi
91
92#requirements :
93#       @if test ! -r requirements ; then echo "No requirements file" ; fi
94
95build_library_links : dirs
96        $(echo) "(constituents.make) Rebuilding library links"; \
97         $(build_library_links)
98#       if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \
99#       $(build_library_links)
100
101$(cmt_build_library_linksstamp) : $(cmt_final_setup) $(cmt_local_tagfile) $(bin)library_links.in
102        $(echo) "(constituents.make) Rebuilding library links"; \
103         $(build_library_links) -f=$(bin)library_links.in -without_cmt
104        $(silent) \touch $@
105
106ifndef PEDANTIC
107.DEFAULT ::
108#.DEFAULT :
109        $(echo) "(constituents.make) $@: No rule for such target" >&2
110endif
111
112${CMTROOT}/src/Makefile.core : ;
113ifdef use_requirements
114$(use_requirements) : ;
115endif
116
117#-- end of constituents_header ------
Note: See TracBrowser for help on using the repository browser.