From deffba48d8932b66b53c4a330f4d0e55590ee399 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Thu, 30 Jan 2020 11:49:18 +0100
Subject: debian/rules: Adopt changes from official Debian package.

---
 debian/rules | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'debian')

diff --git a/debian/rules b/debian/rules
index d0ce74dd6..9bfee93fd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,11 @@ export INCLUDEDIR = "/usr/include/$(DEB_HOST_MULTIARCH)"
 
 override_dh_auto_clean:
 	rm -Rf nx-X11/.build-exports
-	dh_auto_clean  --no-parallel || dh_auto_clean
+	dh_auto_clean --no-parallel || dh_auto_clean
+
+override_dh_clean:
+	dh_clean
+	rm -f nx-X11/config/cf/date.def
 
 override_dh_install:
 
@@ -44,7 +48,10 @@ override_dh_install:
 	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/extensions/XI.h
 	rm -R debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/nx-X11/Xtrans/
 
-	dh_install --fail-missing
+	dh_install
+
+override_dh_missing:
+	dh_missing --fail-missing
 
 override_dh_auto_install:
 	PREFIX='/usr' dh_auto_install --no-parallel -Smakefile || \
-- 
cgit v1.2.3