#-- start of make_setup ------

${PACKAGE}_tag = $(tag)

all :: config

csh :: $(${PACKAGE}_tag).csh
	@/bin/echo $(${PACKAGE}_tag).csh ok

$(${PACKAGE}_tag).csh : cmt_path.make requirements ${use_requirements}
	@if test "$(nocheck)" = ""; then \
	  /bin/echo "Rebuilding $@"; \
	  $(cmtexe) setup -quiet -tag=$(tags) | sed -e 's#`${CMTROOT}/mgr/cmt system`#$(${PACKAGE}_tag)#' >$(${PACKAGE}_tag).csh; \
	fi

sh :: $(${PACKAGE}_tag).sh
	@/bin/echo $(${PACKAGE}_tag).sh ok

$(${PACKAGE}_tag).sh : cmt_path.make requirements ${use_requirements}
	@if test "$(nocheck)" = ""; then \
	  /bin/echo "Rebuilding $@"; \
	  $(cmtexe) setup -quiet -sh -tag=$(tags) | sed -e 's#`${CMTROOT}/mgr/cmt system`#$(${PACKAGE}_tag)#' >$(${PACKAGE}_tag).csh; \
	fi

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

env.make ::
	@printenv >env.make.tmp; $(cmtexe) -quiet check files env.make.tmp env.make

$(${PACKAGE}_tag).make : requirements $(use_requirements)
	@if test ! -d $(bin) ; then $(mkdir) -p $(bin); fi; \
	  if test -f $(${PACKAGE}_tag).make; then /bin/rm -f $(${PACKAGE}_tag).make; fi; \
	  $(cmtexe) -quiet -tag=$(tags) build tag_makefile >t$$$$; mv t$$$$ $(${PACKAGE}_tag).make ; \
	  $(cmtexe) -quiet -tag=$(tags) show uses >t$$$$; mv t$$$$ uses.make ; \
	  $(cmtexe) -tag=$(tags) show tags >t$$$$; mv t$$$$ tags.make

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

all :: build_library_links


#-- end of make_setup ------
