summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-12-23 20:36:29 +0100
committerPeter Foley <pefoley2@verizon.net>2012-12-24 22:49:46 +0000
commitae20a668cc3a26da59d1dcd752a9c0be79196599 (patch)
treeee425229a2a7efd556bcad172c3ccf53815403ff /Makefile.in
parent6763a59564c3b34c46e4acd8ea9f5feb42f35969 (diff)
Do not run autogen.sh if we don't want to. (for help, clean, distclean)
Change-Id: Ic283ca4181fe5131a557bfb2cfd3d79ac1e9f82d Reviewed-on: https://gerrit.libreoffice.org/1479 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index b80ad4ad903c..8c5f060ce10f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -17,7 +17,11 @@ SHELL=/usr/bin/env bash
SRCDIR := @SRC_ROOT@
BUILDDIR := @BUILDDIR@
-ifeq (,$(MAKE_RESTARTS))
+# 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 help clean distclean,$(MAKECMDGOALS)),T))
.PHONY : force-restart
Makefile: $(BUILDDIR)/config_host.mk force-restart