From e48d33bce151400347c53dd67b91894ac42ca46f Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Thu, 26 Jan 2012 16:29:26 -0600 Subject: autogen properly on default target.. and do not autogen on clean/distclean --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2f592c094ccb..9f9e93a71733 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,11 @@ # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- .PHONY : all autogen bootstrap fetch build clean clean-build clean-host + +ifeq ($(MAKECMDGOALS),) +MAKECMDGOALS:=all +endif + all: build SHELL=/usr/bin/env bash @@ -325,6 +330,7 @@ cmd: endif +ifneq ($(filter-out clean distclean,$(MAKECMDGOALS)),) # # autogen # @@ -350,7 +356,7 @@ $(WORKDIR)/bootstrap: autogen @cd $(SRCDIR) && ./bootstrap @mkdir -p $(dir $@) && touch $@ -bootstrap: $(WORKDIR)/bootstrap +bootstrap: $(WORKDIR)/bootstrap autogen # # Fetch @@ -415,4 +421,7 @@ include $(SOLARENV)/gbuild/gbuild.mk $(eval $(call gb_Module_make_global_targets,$(wildcard $(SRCDIR)/RepositoryModule_*.mk))) endif +endif # not clean or distclean + + # vim: set noet sw=4 ts=4: -- cgit v1.2.3