#!/usr/bin/make -f

export DEB_BUILD_HARDENING=1

build-indep:
build-arch: src/espeakedit
src/espeakedit:
	cp -f src/portaudio19.h src/portaudio.h
	$(MAKE) -C src

override_dh_installdocs:
	dh_installdocs
	sed -i -e 's&<img src="http://sflogo.sourceforge.net[^>]*>&&' debian/espeakedit/usr/share/doc/espeakedit/docs/*.html

build: build-arch

clean:
	dh_testdir

	$(MAKE) -C src clean
	rm -f src/espeakedit

	cp -f src/portaudio18.h src/portaudio.h

	dh_clean

%:
	dh  $@
