diff options
author | David Tardon <dtardon@redhat.com> | 2013-05-30 16:12:22 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-05-30 16:14:00 +0200 |
commit | f2937da20c88ac9dae1c579d29bf9125e49eadac (patch) | |
tree | 90146e21ed4b64320c7e7be3aed47e8c27bb0843 /Makefile.in | |
parent | 636b7e64bd803f2355bfcc56680d41832ccc4a6b (diff) |
don't run autogen.sh if building from tarballs
Change-Id: Idaf56719a5c1d42de62a4945b47f4a2d377b3dd3
(cherry picked from commit 40ae8f365b2c30a37a9fb22aabd4858f519665ed)
Signed-off-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in index 26a00ad58f09..ac9d1b4e2a35 100644 --- a/Makefile.in +++ b/Makefile.in @@ -16,12 +16,16 @@ endif SHELL=/usr/bin/env bash SRCDIR := @SRC_ROOT@ BUILDDIR := @BUILDDIR@ - -# Next 'if' means: -# If you want to make something more than help clean distclean, -# and make has not yet restarted itself.. -# ..run autogen.sh if needed and force make to restart itself. -ifeq (,$(MAKE_RESTARTS)$(if $(filter-out help clean distclean,$(MAKECMDGOALS)),,T)) +GIT_BUILD := $(if $(wildcard $(SRCDIR)/.git),T) + +# Run autogen.sh if needed and force make to restart itself. +# ... but there are several cases where we do not want to run +# autogen.sh: +# 1. if we are building from tarballs, not git checkout (I do not +# think packagers would ever want that. I certainly do not.) +# 2. if we are making help, clean or distclean, because they do not +# need updated configuration +ifeq (,$(MAKE_RESTARTS)$(if $(GIT_BUILD),,T)$(if $(filter-out help clean distclean,$(MAKECMDGOALS)),,T)) .PHONY : force-restart Makefile: $(BUILDDIR)/config_host.mk force-restart |