#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_OPTIONS += noautodbgsym

%:
	dh $@

override_dh_auto_clean:
	rm -f modules/juce_audio_processors/format_types/juce_VSTInterface.h
	make -C docs/doxygen clean
	dh_auto_clean

override_dh_auto_configure:
	cp -f debian/juce_VSTInterface.h modules/juce_audio_processors/format_types/
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DJUCE_BUILD_EXTRAS=ON \
		-DJUCE_TOOL_INSTALL_DIR=bin \
		-DCMAKE_MESSAGE_LOG_LEVEL=STATUS

override_dh_auto_build:
	dh_auto_build
	make -C docs/doxygen

override_dh_compress:
	dh_compress -Xusr/share/doc/juce-7.0.2/html/
