#!/usr/bin/make -f
# -*- makefile -*-

#export DH_OCTAVE_EXCLUDE_TEST = dendrogram.m

%:
	dh $@ --buildsystem=octave

common_dir = debian/octave-statistics-common

execute_after_dh_installdeb:
	# Use local JavaScript and CSS files
	debian/local-url
	# Remove empty directory
	rmdir $(common_dir)/usr/share/octave/packages/statistics-*/doc/
	# See https://savannah.gnu.org/bugs/?65418
	find $(common_dir) -name \*.m -a -perm /+x -exec chmod -x \{} \;
