Use --fail-missing for dh_install.
[debian/lxappearance.git] / debian / rules
index b7e47a5..4b8e496 100755 (executable)
@@ -20,6 +20,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DISTRO = "$(shell lsb_release -si)"
+
 %:
        dh $@
 
@@ -31,6 +33,15 @@ override_dh_auto_clean:
        rm -f man/lxpanel.1 man/lxpanelctl.1
        dh_auto_clean
 
+override_dh_install:
+       dh_install --fail-missing
+       #Install apport hook only on Ubuntu
+ifeq ($(DISTRO),"Ubuntu")
+       dh_install -plxappearance debian/apport/source_lxappearance.py usr/share/apport/package-hooks
+endif
+
 override_dh_auto_test:
        :       
 
+override_dh_strip:
+       dh_strip --dbg-package=lxappearance-dbg