# /usr/share/doc/jupyter-sphinx-theme-doc/examples/Makefile
#
# Ad hoc Makefile for building and playing with the sample sources
# distributed within the debian package jupyter-sphinx-theme-doc.
#
# Recommended usage:
# 1. Create a dedicated folder somewhere in your HOME directory;
# 2. Link all the files in /usr/share/doc/jupyter-sphinx-theme-doc/examples
#    into this dedicated folder
# 3. Link the jupyter_sphinx_theme python module folder into this folder, next
#    to this Makefile; this will be either
#    /usr/lib/python2.7/dist-packages/jupyter_sphinx_theme/ or
#    /usr/lib/python3.?/dist-packages/jupyter_sphinx_theme/
#    depending on whether your sphinx-build is using python 2 or 3
# 4. Launch this Makefile in the dedicated folder:
#  $ make ;
#  for a basic cleanup, consider the clean target:
#  $ make clean ;
#  for an entire cleanup, the maintainer-clean target:
#  $ make maintainer-clean ;
#  for other targets, just read the Makefile.
#
# written for Debian by Jerome Benoit <calculus@rezozer.net>
# on behalf of the Debian Python Modules Team
# copyright: 2016 Jerome Benoit <calculus@rezozer.net>
# distributed under the terms and conditions of the MIT License
#

JST_DEMO_LISTOF_ITEM = \
	html \
	dirhtml \
	singlehtml \
	pickle \
	json \
	htmlhelp \
	qthelp \
	devhelp \
	epub \
	latex latexpdf \
	text \
	man \
	texinfo \
	info \
	gettext \
	changes \
	linkcheck

default: all

all: build

build: build-demo

build-demo:
	$(foreach ITEM,$(JST_DEMO_LISTOF_ITEM), \
		@echo "***************** $(ITEM) *****************" $(NEWLINE)\
		$(MAKE) -C demo $(ITEM) BUILDDIR=build/build-$(ITEM) $(NEWLINE)\
		@echo $(NEWLINE)\
		)

check: build

clean:
	$(MAKE) -C demo clean

maintainer-clean: clean

###############################################################################
define NEWLINE


endef

# eos
