Add the packages needed by the example script to Suggests: and don't
[debian/iodine.git] / debian / rules
index fa1ae883b2c5f0f002fc8d3f2a92964670048afd..8edb56f1089f3103ac7920a070cd61c6e35f6e20 100755 (executable)
@@ -9,7 +9,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-include /usr/share/dpatch/dpatch.make
+include /usr/share/quilt/quilt.make
 
 CFLAGS = -Wall -g
 
@@ -20,29 +20,31 @@ else
 endif
 
 configure: configure-stamp
-configure-stamp: $(DPATCH_STAMPFN)
+configure-stamp: $(QUILT_STAMPFN)
        dh_testdir
        touch $@
 
 build: build-stamp
 build-stamp: configure-stamp
        dh_testdir
-       $(MAKE)
-       $(MAKE) test
+       CFLAGS="$(CFLAGS)" $(MAKE)
+       CFLAGS="$(CFLAGS)" $(MAKE) test
        touch $@
 
 clean: unpatch
        dh_testdir
        dh_testroot
-       rm -f build-stamp configure-stamp
+       rm -f build-stamp configure-stamp install-stamp
        $(MAKE) clean
        debconf-updatepo
        dh_clean
 
-install: build
+install: install-stamp
+install-stamp: build-stamp
        dh_testdir
        dh_testroot
-       $(MAKE) install prefix=debian/iodine/usr 
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/iodine prefix=/usr
+       touch $@
 
 
 # Build architecture-independent files here.
@@ -55,11 +57,12 @@ binary-arch: build install
        dh_testroot
        dh_installchangelogs CHANGELOG
        dh_installdocs README
-       dh_installdebconf       
+       dh_installexamples debian/iodine-jigger
+       dh_installdebconf
        dh_installinit --name=iodined
        dh_link usr/share/man/man8/iodine.8 usr/share/man/man8/iodined.8
        dh_strip
-       dh_compress
+       dh_compress -Xiodine-jigger
        dh_fixperms
        dh_installdeb
        dh_shlibdeps