include(images/images.pro)

HTMLDIR=$$PWD/share/doc/source-highlight-ide/html

html_docs.files = $$HTMLDIR/*
html_docs.CONFIG += no_check_exist

!macx {
    html_docs.path = /share/doc/source-highlight-ide/html
}

macx {
    DOC_DIR = $${OUT_PWD}/bin/source-highlight-ide.app/Contents/Resources/doc
    cp_docs.commands = mkdir -p $${DOC_DIR} ; $${QMAKE_COPY} $${HTMLDIR}/*
}

QMAKE_EXTRA_TARGETS += html_docs

INSTALLS += html_docs

OTHER_FILES = Doxyfile \
    source-highlight-ide-doc.h \
    Makefile-doc.mk \
    source-highlight-ide.qhcp
