
!include $(CMTROOT)/src/NMakefile.core

!if defined (tag)
CMTEXTRATAGS = $(tag)
!else
tag       = $(CMTCONFIG)
!endif

tags      = $(tag),$(CMTEXTRATAGS)

${PACKAGE}_tag = $(tag)

!if [echo (constituents.nmake) Rebuilding $(${PACKAGE}_tag).nmake] == 0
!endif

!if [cmt -quiet build tag_makefile -tag_add=$(tags) >$(${PACKAGE}_tag).nmake] == 0
!endif

!include $(${PACKAGE}_tag).nmake

all ::

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

cmt_lock_setup = lock$(cmt_lock_pid).nmake
cmt_setup_pid  = $(bin)setup.nmake

config ::  ##$(${PACKAGE}_tag).nmake

env.nmake ::
	@set >env.nmake.tmp; $(cmtexe) -quiet check files env.nmake.tmp env.nmake

all ::

javadirs ::
	@if not exist $(javabin) mkdir $(javabin)

srcdirs ::
	@if not exist $(src) mkdir $(src)

dirs ::
	@if not exist requirements echo "No requirements file"
	@echo (constituents.nmake) Rebuilding setup.nmake
	@if not exist $(bin) mkdir $(bin)
	@$(cmtexe) -quiet -tag=$(tags) show setup   >$(cmt_setup_pid)
	@echo setup.nmake ok

.DEFAULT :
        @echo "???"

