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
RevLine 
[2]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
[434]16#cmt_local_tagfile = $(${PACKAGE}_tag).make
17cmt_local_tagfile = $(bin)$(${PACKAGE}_tag).make
[2]18
[434]19#-include $(cmt_local_tagfile)
20include $(cmt_local_tagfile)
[2]21
[487]22#cmt_local_setup = $(bin)setup$$$$.make
23#cmt_local_setup = $(bin)$(package)setup$$$$.make
[434]24#cmt_final_setup = $(bin)${PACKAGE}setup.make
[487]25cmt_final_setup = $(bin)setup.make
26#cmt_final_setup = $(bin)$(package)setup.make
[2]27
[588]28cmt_build_library_linksstamp = $(bin)cmt_build_library_links.stamp
[2]29#--------------------------------------------------------
30
[434]31#cmt_lock_setup = /tmp/lock$(cmt_lock_pid).make
32#cmt_temp_tag = /tmp/tag$(cmt_lock_pid).make
[2]33
[434]34#first :: $(cmt_local_tagfile)
35#       @echo $(cmt_local_tagfile) ok
[487]36#ifndef QUICK
37#first :: $(cmt_final_setup) ;
38#else
39#first :: ;
40#endif
[2]41
[459]42##      @bin=`$(cmtexe) show macro_value bin`
[2]43
[434]44#$(cmt_local_tagfile) : $(cmt_lock_setup)
45#       @echo "#CMT> Error: $@: No such file" >&2; exit 1
[487]46#$(cmt_local_tagfile) :
47#       @echo "#CMT> Warning: $@: No such file" >&2; exit
[434]48#       @echo "#CMT> Info: $@: No need to rebuild file" >&2; exit
49
[487]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
[434]65
[441]66#       @/bin/echo $@ ok   
67
[487]68#config :: checkuses
69#       @exit 0
70#checkuses : ;
[2]71
72env.make ::
[459]73        printenv >env.make.tmp; $(cmtexe) check files env.make.tmp env.make
[2]74
[434]75ifndef QUICK
[588]76all :: build_library_links ;
77else
78all :: $(cmt_build_library_linksstamp) ;
[434]79endif
[2]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
[487]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
[2]91
[588]92#requirements :
93#       @if test ! -r requirements ; then echo "No requirements file" ; fi
[487]94
95build_library_links : dirs
[441]96        $(echo) "(constituents.make) Rebuilding library links"; \
[487]97         $(build_library_links)
98#       if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \
99#       $(build_library_links)
[2]100
[588]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
[2]107.DEFAULT ::
[588]108#.DEFAULT :
[459]109        $(echo) "(constituents.make) $@: No rule for such target" >&2
[588]110endif
[95]111
[588]112${CMTROOT}/src/Makefile.core : ;
113ifdef use_requirements
114$(use_requirements) : ;
115endif
[434]116
[2]117#-- end of constituents_header ------
Note: See TracBrowser for help on using the repository browser.