#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	AUTOMAKE='automake --foreign' dh_autoreconf

override_dh_installdocs:
ifneq (,$(filter libisofs-doc, $(shell dh_listpackages)))
	doxygen doc/doxygen.conf
endif
	dh_installdocs

override_dh_strip:
	dh_strip --dbg-package=libisofs-dbg

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_clean:
	$(RM) -f doc/doxygen.conf 
	$(RM) -r doc/html
	if [ -f Makefile ]; then $(MAKE) clean; fi
	dh_clean
