DOCROOT ?= $(firstword $(CASAPATH))/$(word 2, $(CASAPATH))
makefile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(dir $(makefile_path))
DOXY = $(current_dir)bin/doxy
PLONE = $(current_dir)bin/fetch_plone
INDEX = $(current_dir)bin/create_index
if test -f "$(DOCROOT)/doc/index.html"; then \
rm -f "$(DOCROOT)/doc/index.html"; \
mkdir -p $(DOCROOT)/doc && \
$(INDEX) out=$(DOCROOT)/doc
if test -d "$(DOCROOT)/doc/doxygen"; then \
rm -rf "$(DOCROOT)/doc/doxygen"; \
mkdir -p $(DOCROOT)/doc/doxygen && \
$(DOXY) out=$(DOCROOT)/doc/doxygen
if test -d "$(DOCROOT)/doc/plone"; then \
rm -rf "$(DOCROOT)/doc/plone"; \
mkdir -p $(DOCROOT)/doc/plone && \
$(PLONE) out=$(DOCROOT)/doc/plone
@if test -d "$(DOCROOT)" -a "$(DOCROOT)" != "/"; then \
echo "please specify a DOCROOT where output should be placed"; \