2015-10-01 19:35:45 +02:00
|
|
|
#!/usr/bin/make -f
|
2016-01-03 15:07:53 +01:00
|
|
|
|
2015-10-01 19:35:45 +02:00
|
|
|
DPKG_EXPORT_BUILDFLAGS = 1
|
|
|
|
include /usr/share/dpkg/default.mk
|
|
|
|
|
|
|
|
|
|
|
|
%:
|
2016-01-13 22:24:39 +01:00
|
|
|
dh $@ --parallel --with autoreconf
|
2015-10-01 19:35:45 +02:00
|
|
|
|
2015-12-30 20:43:14 +01:00
|
|
|
# dh_auto_clean tries to "make distclean", but we don't have that target.
|
|
|
|
override_dh_auto_clean:
|
|
|
|
test ! -e Makefile || $(MAKE) clean
|
2016-02-19 14:57:43 +01:00
|
|
|
|
|
|
|
## http://wiki.debian.org/onlyjob/get-orig-source
|
|
|
|
PKD := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
|
|
PKG := $(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source)
|
|
|
|
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Version | cut -d- -f1)
|
|
|
|
.PHONY: get-orig-source
|
|
|
|
get-orig-source: $(info I: $(PKG)_$(VER))
|
|
|
|
@echo "# Downloading for ${PKD}"
|
|
|
|
uscan --noconf --verbose --rename --destdir=$(CURDIR) \
|
|
|
|
--check-dirname-level=0 --force-download --download-version "$(VER)" $(PKD)
|