telegram-purple/debian/rules

23 lines
782 B
Text
Raw Permalink Normal View History

2015-10-01 19:35:45 +02:00
#!/usr/bin/make -f
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
# dh_auto_clean tries to "make distclean", but we don't have that target.
override_dh_auto_clean:
test ! -e Makefile || $(MAKE) clean
## 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)