Add extension hooks to debian/rules.
authorBen Pfaff <blp@nicira.com>
Fri, 31 Oct 2008 17:42:59 +0000 (10:42 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 31 Oct 2008 21:09:53 +0000 (14:09 -0700)
debian/rules

index e7202103e562b9be5e9b3fd944068899603093d6..da957ce388cf6daf010e6f3733d58ebfc00e41aa 100755 (executable)
@@ -25,6 +25,8 @@ MA_DIR ?= /usr/share/modass
 # load default rules
 -include $(MA_DIR)/include/common-rules.make
 
+-include debian/rules.ext
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
@@ -34,6 +36,7 @@ configure-stamp:
                test -e Makefile || \
                ../configure --prefix=/usr --localstatedir=/var --enable-ssl \
                        --enable-snat)
+       $(ext_configure)
        touch configure-stamp
 
 #Architecture 
@@ -42,11 +45,13 @@ build: build-arch build-indep
 build-arch: build-arch-stamp
 build-arch-stamp: configure-stamp 
        $(MAKE) -C _debian
+       $(ext_build_arch)
        touch $@
 
 build-indep: build-indep-stamp
 build-indep-stamp: configure-stamp 
        $(MAKE) -C _debian dist distdir=openflow
+       $(ext_build_indep)
        touch $@
 
 clean:
@@ -55,6 +60,7 @@ clean:
        rm -f build-arch-stamp build-indep-stamp configure-stamp
        rm -rf _debian
        [ ! -f Makefile ] || $(MAKE) distclean
+       $(ext_clean)
        dh_clean 
        debconf-updatepo
 
@@ -103,6 +109,7 @@ install-indep: build-indep
        cd debian/openflow-datapath-source/usr/src && tar -c modules | bzip2 -9 > openflow-datapath.tar.bz2 && rm -rf modules
        install -m644 debian/openflow-pki-server.apache2 debian/openflow-pki-server/etc/apache2/sites-available/openflow-pki
        dh_install -i
+       $(ext_install_indep)
 
 install-arch: build-arch
        dh_testdir
@@ -112,6 +119,7 @@ install-arch: build-arch
        $(MAKE) -C _debian DESTDIR=$(CURDIR)/debian/openflow install
        cp debian/openflow-switch-config.overrides debian/openflow-switch-config/usr/share/lintian/overrides/openflow-switch-config
        dh_install -s
+       $(ext_install_arch)
 
 # Must not depend on anything. This is to be called by
 # binary-arch/binary-indep