ifndef OUTLANG
  $(error "Missing environment variable OUTLANG")
endif
ifdef DOC_BLD_ROOT
  include $(DOC_BLD_ROOT)$(OUTLANG)/include/Makefile-pre.mk
else
  $(error "Missing environment variable DOC_BLD_ROOT")
endif

######################################################

#export PYTHON_STYLE_WORKAROUND = 1
#C_STYPE_WORKAROUND = 1

SRC_POOL =


OUTSTEM		= $(CALLDIRNAME)
OUTFNAMES	= 

include Makefile-src-en.mk

DOXYGEN_HTML_DIR = $(OUTHTML7)/$(OUTSTEM)
OUTDIRS += $DOXYGEN_HTML_DIR

DOXYGEN_HTML_FILES = $(DOXYGEN_HTML_DIR)/index.html
OUTFILES	+= $(DOXYGEN_HTML_FILES) 

STRIP_FROM_PATH = $(RTBASE)/tests

PROJECT_LOGO = $(DOCBASE_ML)images/utalm-green-96x60.png
HTML_HEADER = header.html
HTML_STYLESHEET = utalm.css 

DOXYGEN_HTML_INPUT =

DOXYGEN_HTML_INPUT += $(RTBASE)tests/bin
DOXYGEN_HTML_INPUT += $(RTBASE)tests/utalm-bash

DOXYGEN_HTML_INPUT += mainpage.dox
DOXYGEN_HTML_INPUT += $(BLD_ROOT)/doc/en/include/license.dox
DOXYGEN_HTML_INPUT += $(BLD_ROOT)/doc/en/include/aboututalm.dox
DOXYGEN_HTML_INPUT += make-based-unittests.dox
DOXYGEN_HTML_INPUT += testing-devops-tools.dox

DOXYGEN_HTML_INPUT += $(RTBASE)install-devel.sh
DOXYGEN_HTML_INPUT += $(RTBASE)install.sh

DOXYGEN_HTML_CONF = Doxyfile.conf
DOXYGEN_HTML_LAYOUT = DoxygenLayout.xml
DOXYGEN_HTML_INPUT_CONF =  Doxyfile_Inputfiles.conf
DOXYGEN_HTML_OUTPUT_CONF =  Doxyfile_Outputfiles.conf


OUTFILES	= 

#for safety now
INCLUDES=$(wildcards $(BLD_ROOT)include/*)
INCLUDES=$(wildcards $(DOC_BLD_ROOT)include/*)
INCLUDES=$(wildcards ../include/*)

all:outdirs $(ENVFILES) topmain $(INCLUDES) $(DOXYGEN_HTML_FILES)
$(DOXYGEN_HTML_FILES):$(DOXYGEN_HTML_INPUT)

$(RTBASE)tests/bin:$(BLD_ROOT)tests/bin 
	$(CPA) $? $(@D)

$(RTBASE)tests/utalm-bash:$(BLD_ROOT)tests/utalm-bash
	@echo
	@echo "###"
	@echo "#Change to:$@"
	cd $<&&$(MAKE) $(MFLAGS)
	@echo "#...finished:$@"


.PHONY:topmain
topmain:
	INDENT0="$(INDENT0)" INDENT1="$(INDENT1)" BLD_ROOT=$(BLD_ROOT) OUTLANG=$(OUTLANG) SUBROOTTOP= CURSUBPATH= $(MAKE) -C $(BLD_ROOT) $(MFLAGS) files dirs

#
include $(BLD_ROOT)lib/Makefile.lib/Makefile-doxygen-rules.mk
#
#######################################################
#
include $(BLD_ROOT)include/Makefile-post.mk
#
