#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
ifneq (,$(findstring amd64,$(DEB_BUILD_ARCH)))
	make -C pd
else
	make -C pd PORTABLE=true
endif
	cp pd/jsusfx_test.pd jsusfx~-help.pd
	debian/liteon.sh
	dh_auto_build

override_dh_auto_clean:
	make -C pd clean
	-rm  -f jsusfx~-help.pd
	-rm -rf liteon
	-rm WDL/eel2/*.asm
	dh_auto_clean
