#!/usr/bin/make -f

%:
	dh $@ --with autoreconf 

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-gtk3 \
		--disable-rpath \
		--disable-static \
		--disable-update-xdg-database \
		GUILE=/usr/bin/guile-3.0 \
		LDFLAGS="$(LDFLAGS) -Wl,--as-needed" \
		USE_LDCONFIG=/sbin/ldconfig

override_dh_auto_install:
	dh_auto_install
	rm -f debian/lepton-eda/usr/lib/*/*.la

override_dh_compress:
	dh_compress -Xwiki -X.sch -Xexamples -X.sym
