autogen properly on default target.. and do not autogen on clean/distclean

This commit is contained in:
Norbert Thiebaud 2012-01-26 16:29:26 -06:00
parent 8439990081
commit e48d33bce1

View file

@ -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: