#-- start of check_application_header ------

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

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

check :: ${CONSTITUENT}check
	$(echo) "(constituents.make) ${CONSTITUENT}check ok"
#	@echo "------> ${CONSTITUENT}check ok"

#${CONSTITUENT}check : ${CONSTITUENT} $(cmt_local_${CONSTITUENT}_makefile)
#${CONSTITUENT}check : $(cmt_local_${CONSTITUENT}_makefile)
ifdef cmt_${CONSTITUENT}_is_check_group
${CONSTITUENT}check : ${CONSTITUENT}
else
${CONSTITUENT}check :
endif
	@if test ! -f $(cmt_local_${CONSTITUENT}_makefile); then \
	  $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}; \
	fi
	$(echo) "(constituents.make) Starting $@"
	@$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) $@

#${CONSTITUENT}check ::
#	@echo "------> starting ${CONSTITUENT}check"
#	@$(cmtexe) build constituent_makefile ${CONSTITUENT}; $(MAKE) -f ${CONSTITUENT}.make build_strategy=keep_makefiles ${CONSTITUENT}check

#-- end of check_application_header ------
