
${PACKAGE}_tag = $(tag)

all :: config

bat : $(${PACKAGE}_tag).bat
	@/bin/echo $(${PACKAGE}_tag).bat ok
  
###$(${PACKAGE}_tag).bat : cmt_path.make requirements ${use_requirements}
$(${PACKAGE}_tag).bat : requirements ${use_requirements}
	@/bin/echo Rebuilding setup and config. One requirements file has changed.
	$(cmt) build setup -bat -tag=$(${PACKAGE}_tag)

config : checkuses $(${PACKAGE}_tag).make
	@/bin/echo $(${PACKAGE}_tag).make ok

##$(${PACKAGE}_tag).make : cmt_path.make requirements ${use_requirements}
$(${PACKAGE}_tag).make : requirements ${use_requirements}
	@echo "Now rebuilding $@"
###	@mkdir -p $(bin); touch $(${PACKAGE}_tag).make; ${CMTROOT}/mgr/cmt -quiet build tag_makefile -tag=$(${PACKAGE}_tag) >t$$$$; mv t$$$$ $(${PACKAGE}_tag).make

-include $(${PACKAGE}_tag).make

##configclean :
##	/bin/rm -f *.make*


