Eric Butler | 91ffa2b | 2012-08-14 18:07:48 -0700 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 3 | DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) |
| 4 | DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) |
| 5 | VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') |
| 6 | |
Eric Butler | 91ffa2b | 2012-08-14 18:07:48 -0700 | [diff] [blame] | 7 | CFLAGS = -Wall -g |
| 8 | |
| 9 | export DH_VERBOSE=1 |
| 10 | |
| 11 | %: |
| 12 | dh --with autoreconf $@ --fail-missing |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 13 | |
| 14 | override_dh_autoreconf: |
| 15 | echo $(VERSION) > .tarball-version |
| 16 | dh_autoreconf |