# MingW makefile for the doc subdirectory
SRCDIR=xml
HTMLDIR=html

.PHONY:	dist clean

dist:	usersguide.pdf html
	$(MAKE) -f Makefile_windows -C $(SRCDIR) clean

clean:
	del /q usersguide.pdf
	rmdir /s /q $(HTMLDIR)
	$(MAKE) -f Makefile_windows -C $(SRCDIR) clean

usersguide.pdf:	$(SRCDIR)\usersguide.xml
	$(MAKE) -f Makefile_windows -C $(SRCDIR) usersguide.pdf
	copy $(SRCDIR)\usersguide.pdf .

# The copy of PNG files should be done in the %.html target of
# xml/Makefile_windows IF that target was not .PRECIOUS
html:	$(SRCDIR)\usersguide.xml
	$(MAKE) -f Makefile_windows -C $(SRCDIR) %.html
	mkdir $(HTMLDIR)\images
	copy  $(SRCDIR)\*.html $(HTMLDIR)
	copy  $(SRCDIR)\pytables_style.css $(HTMLDIR)
	copy  $(SRCDIR)\*.png $(HTMLDIR)
	copy  $(SRCDIR)\images\*.png $(HTMLDIR)\images

