source: CMT/v1r14p20031120/fragments/constituents_header @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 2.0 KB
Line 
1#-- start of constituents_header ------
2
3include ${CMTROOT}/src/Makefile.core
4
5ifdef tag
6CMTEXTRATAGS = $(tag)
7else
8tag       = $(CMTCONFIG)
9endif
10
11tags      = $(CMTCONFIG),$(CMTEXTRATAGS)
12
13${PACKAGE}_tag = $(tag)
14
15#--------------------------------------------------------
16
17cmt_lock_setup = /tmp/lock$(cmt_lock_pid).make
18cmt_temp_tag = /tmp/tag$(cmt_lock_pid).make
19cmt_setup_pid  = $(bin)${PACKAGE}setup$(cmt_lock_pid).make
20
21first :: $(${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
38config :: checkuses ##$(${PACKAGE}_tag).make
39        @exit 0
40
41env.make ::
42        printenv >env.make.tmp; $(cmtexe) -quiet check files env.make.tmp env.make
43
44all :: build_library_links
45        @echo "------> (constituents.make) all done"
46
47javadirs ::
48        @if test ! -d $(javabin) ; then $(mkdir) -p $(javabin) ; fi
49
50srcdirs ::
51        @if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi
52
53dirs ::
54        @if test ! -r requirements ; then echo "No requirements file" ; fi; \
55          if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi
56
57build_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 ------
Note: See TracBrowser for help on using the repository browser.