#!/usr/bin/make -f

DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared

%:
	dh $@

override_dh_auto_build-indep:
	dh_auto_build -i
	cd $(CURDIR)/doc/doxygen && $(MAKE)

override_dh_installdocs:
	dh_installdocs
	rm debian/libmaloc-dev/usr/share/doc/libmaloc-dev/html/jquery.js
	ln -s /usr/share/javascript/jquery/jquery.js debian/libmaloc-dev/usr/share/doc/libmaloc-dev/html/jquery.js

override_dh_clean:
	dh_clean
	rm -f doc/api/html/*.gif doc/api/html/*.png doc/api/latex/FreeSans.ttf
