aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 26d288047ec26f8b8c89b8feb475a049805a8bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

DEBIAN  := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')

CFLAGS = -Wall -g

export DH_VERBOSE=1

%:
	dh --with autoreconf $@ --fail-missing

override_dh_autoreconf:
	echo $(VERSION) > .tarball-version
	dh_autoreconf