#!/usr/bin/make -f export DH_VERBOSE=1 export PYBUILD_NAME=pynwb PKG = python3-pynwb PKG_ROOT = $(CURDIR)/debian/$(PKG) %: dh $@ --buildsystem=pybuild PKG_DIST = $(PKG_ROOT)/usr/lib/python3*/dist-packages execute_after_dh_install: find debian -name "test_*.nwb" -delete rm -f .coverage.* # Remove duplicate directory. rm -rvf $(PKG_DIST)/pynwb/nwb-schema/docs rm -vf $(PKG_DIST)/pynwb/nwb-schema/Legal.txt rm -vf $(PKG_DIST)/pynwb/nwb-schema/README.rst rm -vf $(PKG_DIST)/pynwb/nwb-schema/license.txt rm -vf $(PKG_DIST)/pynwb/nwb-schema/requirements-doc.txt rm -rvf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/docs rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/Legal.txt rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/README.md rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/license.txt rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/requirements-doc.txt rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/setup.cfg PKG_DOC = $(PKG_ROOT)/usr/share/doc/$(PKG) execute_after_dh_installdocs: # Remove extra license files rm -vf $(PKG_DOC)/nwb-schema/hdmf-common-schema/license.txt rm -vf $(PKG_DOC)/nwb-schema/license.txt