#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_OPTIONS += noautodbgsym
include /usr/share/dpkg/3rdp4r7yr3p0/default.mk

%:
	dh $@

override_dh_auto_clean:
	rm -f dimethoxy-plasma.jucer
	rm -Rf Builds JuceLibraryCode
	dh_auto_clean

override_dh_auto_configure:
	cp -f debian/dimethoxy-plasma.jucer .
	Projucer --set-global-search-path linux \
		defaultJuceModulePath /usr/include/JUCE-8.0.17/modules/
	Projucer --resave dimethoxy-plasma.jucer

override_dh_auto_build:
	dh_auto_build -D Builds/LinuxMakefile -- \
		CONFIG=Release V=1

override_dh_auto_install:
