#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	find debian/tmp -name '*.la' -delete

# I build the docs after the 'make install' because the python docs require an installed lcm
	cd docs; ./build-docs.sh

override_dh_installdocs:
	dh_installdocs
	# Remove example makefile which contains build paths and
	# binary paths
	rm -vf debian/liblcm-doc/usr/share/doc/liblcm-dev/examples/Makefile

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs/html
