+binary-$(DKMS_PKG): build-stamp
+ dh_testdir
+ dh_testroot
+ # Create /usr/src/lustre-client-modules-<version>
+ dh_installdirs -p $(DKMS_PKG) usr/src/lustre-client-modules-$(UPVERSION)
+ # Copy the source
+ rsync -av --exclude='debian/$(DKMS_PKG)/*' --exclude='.git/' \
+ --link-dest=$(PWD) \
+ . debian/$(DKMS_PKG)/usr/src/lustre-client-modules-$(UPVERSION)
+ # Clean it up
+ $(MAKE) -C debian/$(DKMS_PKG)/usr/src/lustre-client-modules-$(UPVERSION) -f debian/rules clean
+
+ # Put the DKMS configuration file in place
+ sed -e 's/[@]UPVERSION[@]/$(UPVERSION)/' debian/dkms.conf.in > debian/$(DKMS_PKG)/usr/src/lustre-client-modules-$(UPVERSION)/dkms.conf
+ dh_install -p $(DKMS_PKG)
+ dh_installchangelogs -p $(DKMS_PKG) lustre/ChangeLog
+ dh_installdocs -p $(DKMS_PKG)
+ dh_compress -p $(DKMS_PKG)
+ dh_installdeb -p $(DKMS_PKG)
+ dh_strip -p $(DKMS_PKG)
+ dh_fixperms -p $(DKMS_PKG)
+ dh_gencontrol -p $(DKMS_PKG)
+ dh_md5sums -p $(DKMS_PKG)
+ dh_builddeb -p $(DKMS_PKG)
+