From: Donald Sharp Date: Wed, 20 May 2015 00:40:43 +0000 (-0700) Subject: iquagga-faster-compile.patch X-Git-Tag: frr-2.0-rc1~1526 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d0af85281438bcb370b7587c58e44f7fc8d65ba1;p=matthieu%2Ffrr.git iquagga-faster-compile.patch Avoid cleaning up the source tree and running reconf every time. Allows recompilation of only those files that have been modified since last run. Relies on the existence of config.status file to decide if we've run the first time or subsequent times. --- diff --git a/debian/rules b/debian/rules index 30c9ef1260..bbc3e7e395 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,7 @@ export DH_VERBOSE=1 export DEB_BUILD_HARDENING=1 +export DH_OPTIONS=-v ifeq ($(WANT_SNMP), 1) USE_SNMP=--enable-snmp @@ -12,19 +13,24 @@ endif %: dh $@ --parallel --with autoreconf --dbg-package=quagga-dbg --list-missing + if [ -e config.status ]; then \ + dh $@ --parallel --dbg-package=quagga-dbg --list-missing; \ + else \ + dh $@ --parallel --with autoreconf --dbg-package=quagga-dbg --list-missing; \ + fi override_dh_auto_clean: - dh_auto_clean + #dh_auto_clean - @echo "BEGIN CRUFT" - @rm -vf */Makefile doc/quagga.fns doc/quagga.info doc/quagga.kys doc/quagga.tmp doc/quagga.pdf doc/quagga.info-* - @rm -vf lib/version.c doc/stamp-vti - @rm -vf vtysh/vtysh_cmd.c - @rm -vf doc/fig*.pdf doc/version.texi - @echo "END CRUFT" + #@echo "BEGIN CRUFT" + #@rm -vf */Makefile doc/quagga.fns doc/quagga.info doc/quagga.kys doc/quagga.tmp doc/quagga.pdf doc/quagga.info-* + #@rm -vf lib/version.c doc/stamp-vti + #@rm -vf vtysh/vtysh_cmd.c + #@rm -vf doc/fig*.pdf doc/version.texi + #@echo "END CRUFT" # why? - @if [ -e config.log ]; then echo "CONFIG.LOG STILL THERE"; rm config.log; fi + #@if [ -e config.log ]; then echo "CONFIG.LOG STILL THERE"; rm config.log; fi override_dh_auto_configure: # Quagga needs /proc to check some BSD vs Linux specific stuff. @@ -34,7 +40,8 @@ override_dh_auto_configure: echo "./configure needs a mounted /proc"; \ exit 1; \ fi - + + if ! [ -e config.status ]; then \ dh_auto_configure -- \ --enable-exampledir=/usr/share/doc/quagga/examples/ \ --localstatedir=/var/run/quagga \ @@ -57,8 +64,8 @@ override_dh_auto_configure: --enable-logfile-mask=0640 \ --enable-rtadv \ --enable-gcc-rdynamic \ - --with-libpam - + --with-libpam; \ + fi if ! diff -b -IHAVE_SNMP -IHAVE_NETSNMP -IUCD_COMPAT -IGETIFADDR debian/my/config.h.reference config.h; then \ echo; \ echo "WARNING: Please compare with debian/my/config.h.reference"; \ @@ -67,7 +74,9 @@ override_dh_auto_configure: fi override_dh_auto_build: - dh_auto_build + #dh_auto_build + $(MAKE) + # doc/ is a bit crazy ifeq ($(GENERATE_PDF), 1) @@ -76,6 +85,8 @@ endif rm -vf doc/quagga.info dh_auto_build -- -C doc quagga.info rm -vf doc/quagga.info.html* + +override_dh_auto_test: override_dh_auto_install: dh_auto_install