#-- start of constituents_header ------ include ${CMTROOT}/src/Makefile.core ifdef tag CMTEXTRATAGS = $(tag) else tag = $(CMTCONFIG) endif tags = $(CMTCONFIG),$(CMTEXTRATAGS) ${PACKAGE}_tag = $(tag) #-------------------------------------------------------- cmt_lock_setup = /tmp/lock$(cmt_lock_pid).make cmt_temp_tag = /tmp/tag$(cmt_lock_pid).make cmt_setup_pid = $(bin)${PACKAGE}setup$(cmt_lock_pid).make first :: $(${PACKAGE}_tag).make @echo $(${PACKAGE}_tag).make ok $(${PACKAGE}_tag).make : $(cmt_lock_setup) @/bin/echo "------> (constituents.make) Rebuilding setup.make $(${PACKAGE}_tag).make" @if test -f $(${PACKAGE}_tag).make; then /bin/rm -f $(${PACKAGE}_tag).make; fi ; \ $(cmtexe) -quiet -tag=$(tags) build tag_makefile >$(cmt_temp_tag) ; \ mv $(cmt_temp_tag) $(${PACKAGE}_tag).make; \ if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \ if test -f $(cmt_setup_pid); then /bin/rm -f $(cmt_setup_pid); fi; \ echo $(CMTCONFIG); \ $(cmtexe) -quiet -tag=$(tags) show setup >>$(cmt_setup_pid); \ /bin/mv $(cmt_setup_pid) $(bin)${PACKAGE}setup.make @/bin/echo setup.make ok -include $(${PACKAGE}_tag).make config :: checkuses ##$(${PACKAGE}_tag).make @exit 0 env.make :: printenv >env.make.tmp; $(cmtexe) -quiet check files env.make.tmp env.make all :: build_library_links @echo "------> (constituents.make) all done" javadirs :: @if test ! -d $(javabin) ; then $(mkdir) -p $(javabin) ; fi srcdirs :: @if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi dirs :: @if test ! -r requirements ; then echo "No requirements file" ; fi; \ if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi build_library_links : dirs requirements @echo "------> (constituents.make) Rebuilding library links"; \ if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi; \ $(build_library_links) .DEFAULT :: @if test "$@" = "$(cmt_lock_setup)"; then \ /bin/rm -f $(cmt_lock_setup); \ touch $(cmt_lock_setup); \ fi #-- end of constituents_header ------