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

Last change on this file since 487 was 487, checked in by rybkin, 15 years ago

See C.L. 382

  • Property svn:eol-style set to native
File size: 2.8 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
28#--------------------------------------------------------
29
30#cmt_lock_setup = /tmp/lock$(cmt_lock_pid).make
31#cmt_temp_tag = /tmp/tag$(cmt_lock_pid).make
32
33#first :: $(cmt_local_tagfile)
34#       @echo $(cmt_local_tagfile) ok
35#ifndef QUICK
36#first :: $(cmt_final_setup) ;
37#else
38#first :: ;
39#endif
40
41##      @bin=`$(cmtexe) show macro_value bin`
42
43#$(cmt_local_tagfile) : $(cmt_lock_setup)
44#       @echo "#CMT> Error: $@: No such file" >&2; exit 1
45#$(cmt_local_tagfile) :
46#       @echo "#CMT> Warning: $@: No such file" >&2; exit
47#       @echo "#CMT> Info: $@: No need to rebuild file" >&2; exit
48
49#$(cmt_final_setup) : $(cmt_local_tagfile)
50#       $(echo) "(constituents.make) Rebuilding $@"
51#       @if test ! -d $(@D); then $(mkdir) -p $(@D); fi; \
52#         if test -f $(cmt_local_setup); then /bin/rm -f $(cmt_local_setup); fi; \
53#         trap '/bin/rm -f $(cmt_local_setup)' 0 1 2 15; \
54#         $(cmtexe) -tag=$(tags) show setup >>$(cmt_local_setup); \
55#         if test ! -f $@; then \
56#           mv $(cmt_local_setup) $@; \
57#         else \
58#           if /usr/bin/diff $(cmt_local_setup) $@ >/dev/null ; then \
59#             : ; \
60#           else \
61#             mv $(cmt_local_setup) $@; \
62#           fi; \
63#         fi
64
65#       @/bin/echo $@ ok   
66
67#config :: checkuses
68#       @exit 0
69#checkuses : ;
70
71env.make ::
72        printenv >env.make.tmp; $(cmtexe) check files env.make.tmp env.make
73
74ifndef QUICK
75all :: build_library_links
76        $(echo) "(constituents.make) all done"
77endif
78
79javadirs ::
80        @if test ! -d $(javabin) ; then $(mkdir) -p $(javabin) ; fi
81
82srcdirs ::
83        @if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi
84
85dirs :: requirements
86        @if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi
87#       @if test ! -r requirements ; then echo "No requirements file" ; fi; \
88#         if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi
89
90requirements :
91        @if test ! -r requirements ; then echo "No requirements file" ; fi
92
93build_library_links : dirs
94        $(echo) "(constituents.make) Rebuilding library links"; \
95         $(build_library_links)
96#       if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \
97#       $(build_library_links)
98
99.DEFAULT ::
100        $(echo) "(constituents.make) $@: No rule for such target" >&2
101#       @echo "#CMT> Warning: $@: Using default commands" >&2; exit
102
103#       @if test "$@" = "$(cmt_lock_setup)"; then \
104        #  /bin/rm -f $(cmt_lock_setup); \
105         # touch $(cmt_lock_setup); \
106        #fi
107
108#-- end of constituents_header ------
Note: See TracBrowser for help on using the repository browser.