#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

CURVER = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | cut -d"-" -f1 )

override_dh_install:
	-rm -rf $(CURDIR)/debian/sysinfo/usr/lib/pkgconfig
	dh_install

%:
	dh $@ --with autoreconf,cli

get-orig-source:
	[ -d ../tarballs ] || mkdir ../tarballs
	uscan \
		--force-download \
		--download-version $(CURVER) \
		--rename \
		--destdir ../tarballs

.PHONY: get-orig-source
