make more binNMU-safe
authorgregor herrmann <gregoa@debian.org>
Mon, 20 Dec 2010 19:20:13 +0000 (19:20 -0000)
committergregor herrmann <gregoa@debian.org>
Mon, 20 Dec 2010 19:20:13 +0000 (19:20 -0000)
debian/rules

index 7ed4f4dcf8e0c7d02b9f2c8db1f4f379d2b00a02..5ff9ee6155d65f6082cb8acd5c57ba4be29f1563 100755 (executable)
@@ -14,6 +14,7 @@ override_dh_auto_build:
        DESTDIR=$(CURDIR)/debian/madwifi-tools $(MAKE) -C $(CURDIR)/tools all
 
 override_dh_auto_install:
+ifneq (,$(findstring madwifi-source, $(shell dh_listpackages)))
        # madwifi-source
        install -D -m 0755 debian/rules.modules \
                $(TMP)/modules/madwifi/debian/rules
@@ -33,6 +34,7 @@ override_dh_auto_install:
        # madwifi-dkms
        $(RM) -r $(TMP)/modules/madwifi/debian
        mv $(TMP)/modules/madwifi debian/madwifi-dkms/usr/src/madwifi-$(VERSION)
+endif
 
        # madwifi-tools
        DESTDIR=$(CURDIR)/debian/madwifi-tools BINDIR=/usr/sbin MANDIR=/usr/share/man \