#!/usr/bin/make -f

%:
	dh $@ --parallel

override_dh_auto_install:
	dh_auto_install

	#CMake actually does an out-of-tree build, so there is no target for the top-level.
	# Move to the build-dir and work there
	cd obj-* && make install DESTDIR=$$(pwd)/debian/tmp/
	#Don't want this, so delete it
	rm -rf $$(pwd)/debian/tmp/usr/lib/cmake/

override_dh_auto_build: 
	dh_auto_build
	#Build doxygen HTML docs
	cd doc && doxygen .
	#Build PDF from doxygen generated latex files
	cd doc/latex && make
	
override_dh_auto_clean: 

	dh_auto_clean
	-rm -rf doc/html/ doc/latex/

.PHONY: override_dh_strip
override_dh_strip:
	dh_strip --dbg-package=libstxxl1-dbg
