#!/usr/bin/make -f

%:
	dh $@ 

override_dh_auto_build:
	$(MAKE) -C avahi-discover

DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
REV=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
              | sed -rne 's,^Version: .*[+~]bzr([0-9]+).*,\1,p')
VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
              | sed -rne 's,^Version: ([^-]+).*,\1,p')
get-orig-source:
	bzr export -r $(REV) --root=maas-enlist-$(VER).orig \
             maas-enlist_$(VER).orig.tar.gz lp:~maas-maintainers/maas/maas-enlist
