From 03531329d3981d7bd5f568690c1d58189d2e1220 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 29 Nov 2012 10:44:27 -0600 Subject: [PATCH] bring back 'make sure' it will git clean and fully reset and build latest git and wipe out any uncomitted changes, you can pass CONFIGURE_ARGS=--foo from the make command line to pass the flags to the reconfigure --- Makefile.am | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index 6e08f68a05..094701142c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -606,6 +606,10 @@ version: reinstall: modwipe uninstall install +pristine: + git clean -fdx + git reset --hard + update-clean: clean libs/openzap/Makefile python-reconf cd libs/sofia-sip && $(MAKE) clean cd libs/openzap && $(MAKE) clean @@ -618,13 +622,6 @@ swigall: @echo reswigging all sh $(switch_srcdir)/build/swigall.sh -sure: current - -speedy-sure: update-clean - $(MAKE) -j core - cd libs/sofia-sip && $(MAKE) -j - $(MAKE) -j modules - speex-reconf: cd libs/speex && autoreconf cd libs/speex && ./config.status --recheck @@ -680,6 +677,14 @@ cluecon: @echo @echo http://www.cluecon.com @sleep 5 + +sure: is-scm pristine update + git pull + sh bootstrap.sh + sh configure $(CONFIGURE_ARGS) + make $(MAKE_ARGS) + make reinstall + current: cluecon update-clean is-scm $(MAKE) update $(MAKE) all