#!/usr/bin/make -f

# Define FPCDIR if it was not set
ifndef FPCDIR
export FPCDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/fpc/default
endif

override_dh_auto_clean:
	rm -f Makefile
	fpcmake
	dh_auto_clean

override_dh_auto_configure:
	fpcmake

override_dh_auto_build:
	convert transgui.ico transgui.xpm
	dh_auto_build

override_dh_auto_test:

override_dh_auto_install:

%:
	dh $@
