diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-01-26 16:29:26 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-02-05 19:34:07 -0600 |
commit | e48d33bce151400347c53dd67b91894ac42ca46f (patch) | |
tree | d643ffb96073e16f6d059700b255ed5426fafa5c /Makefile | |
parent | 843999008182ec71b16b2c3f0a1380396c5c7e8c (diff) |
autogen properly on default target.. and do not autogen on clean/distclean
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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: |