summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-01-26 16:29:26 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-02-05 19:34:07 -0600
commite48d33bce151400347c53dd67b91894ac42ca46f (patch)
treed643ffb96073e16f6d059700b255ed5426fafa5c
parent843999008182ec71b16b2c3f0a1380396c5c7e8c (diff)
autogen properly on default target.. and do not autogen on clean/distclean
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
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: