#!/usr/bin/make -f

SOURCE=wayland-lts-quantal
PACKAGE=libwayland-ltsq0

# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp -name '*.la' -delete
	# temporary, decide where to put these
	rm -rf debian/tmp/usr/share/doc/wayland
	dh_install --fail-missing

# Debug package:
override_dh_strip:
	dh_strip --dbg-package=$(PACKAGE)-dbg

override_dh_auto_test:
	# the test suite does not pass completely in headless mode
	dh_auto_test || true

%:
	dh $@ --with quilt,autoreconf --builddirectory=build/

# For maintainer use only, generate a tarball:
gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
gentarball:
	git archive --format=tar upstream-ubuntu --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz
