#!/usr/bin/make -f
# debian/rules that uses debnest with dpatch
# Written by VA Linux System Japan, Inc.
#
# public domain

## Uncomment this if you want to change the version of binary packages
## lower than the next debian release. You have to handle DEBVERSION variable
## to dpkg-gencontrol in build-tree's debian/rules.
##  Ex.
##    dh_gencontrol -- -v$(DEBVERSION)
#
# export DEBVERSION := $(shell dpkg-parsechangelog  | grep Version: | cut -d' ' -f2 | sed 's/-\([^-]*\)$$/+\1/')
#


include /usr/share/debnest/debnest.mk
include /usr/share/dpatch/dpatch.make

patch: prepatch
prepatch:: debnest-unpack
debnest-build: patch
debnest-clean: unpatch

