#!/usr/bin/make -f

DESTDIR = $(CURDIR)/debian/python-turbogears2-doc

help:
	dh $@

clean:
	dh_testdir
	dh_clean
	$(MAKE) clean
	rm -f sphinxlog.txt
	rm -f code_ext.pyc
	rm -f _static/ToscaWidgetsFormsExample.zip _static/trunk.zip

configure:

build-arch:

build-indep:
	dh_testdir
	$(MAKE) html

build: build-arch build-indep

install:

binary-arch: build

binary-indep: build
	dh_testdir
	dh_installdocs
	dh_installchangelogs
	find $(DESTDIR) -name .pc -type d | xargs rm -rf
	rm -f $(DESTDIR)/usr/share/doc/python-turbogears2-doc/html/_sources/main/License.txt
	rm -f $(DESTDIR)/usr/share/doc/python-turbogears2-doc/html/_static/jquery.js
	rm -f $(DESTDIR)/usr/share/doc/python-turbogears2-doc/html/_static/underscore.js
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb


binary: binary-arch binary-indep
