#-- start of make_header -----------------

#====================================
#  ${TITLE} ${CONSTITUENT}
#
#   Generated ${DATE}  by ${USER}
#
#====================================

include ${CMTROOT}/src/Makefile.core

ifdef tag
CMTEXTRATAGS = $(tag)
else
tag       = $(CMTCONFIG)
endif

cmt_${CONSTITUENT}_${HASTARGETTAG} = 1

#--------------------------------------------------------

ifdef cmt_${CONSTITUENT}_has_target_tag

tags      = $(tag),$(CMTEXTRATAGS),target_${CONSTITUENT}

${PACKAGE}_tag = $(tag)

ifdef READONLY
cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag)_${CONSTITUENT}.make$(cmt_lock_pid)
else
cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.make
endif

else

tags      = $(tag),$(CMTEXTRATAGS)

${PACKAGE}_tag = $(tag)

ifdef READONLY
cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid)
else
cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make
endif

endif

-include $(cmt_local_tagfile_${CONSTITUENT})

ifdef cmt_${CONSTITUENT}_has_target_tag

ifdef READONLY
cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_${CONSTITUENT}setup.make
cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
else
cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make
cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make
endif

else

ifdef READONLY
cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}setup.make
cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
else
cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make
cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make
endif

endif

ifdef READONLY
cmt_final_setup = /tmp/CMT_${PACKAGE}setup.make
else
cmt_final_setup = $(bin)${PACKAGE}setup.make
endif

${CONSTITUENT} ::


ifdef READONLY
${CONSTITUENT} ::
	@echo tags=$(tags)
	@echo cmt_local_tagfile=$(cmt_local_tagfile)
endif


dirs ::
	@if test ! -r requirements ; then echo "No requirements file" ; fi; \
	  if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi

javadirs ::
	@if test ! -d $(javabin) ; then $(mkdir) -p $(javabin) ; fi

srcdirs ::
	@if test ! -d $(src) ; then $(mkdir) -p $(src) ; fi

help ::
	@echo '${CONSTITUENT}'

binobj = 
ifdef STRUCTURED_OUTPUT
binobj = ${CONSTITUENT}/
${CONSTITUENT}::
	@if test ! -d $(bin)$(binobj) ; then $(mkdir) -p $(bin)$(binobj) ; fi
	@echo "STRUCTURED_OUTPUT="$(bin)$(binobj)
endif

#-- end of make_header ------------------

