mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 06:29:40 +00:00
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.
This commit is contained in:
parent
2037f143d8
commit
d0af852814
33
debian/rules
vendored
33
debian/rules
vendored
@ -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.
|
||||
@ -35,6 +41,7 @@ override_dh_auto_configure:
|
||||
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)
|
||||
@ -77,6 +86,8 @@ endif
|
||||
dh_auto_build -- -C doc quagga.info
|
||||
rm -vf doc/quagga.info.html*
|
||||
|
||||
override_dh_auto_test:
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user