From 98ce3d9f82847932f974b10841ccb77b3cba838f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 11 Oct 2009 18:35:19 +0200 Subject: Add install target --- build/bootstrap.make | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build/bootstrap.make b/build/bootstrap.make index 684eaa1..204eaf2 100644 --- a/build/bootstrap.make +++ b/build/bootstrap.make @@ -26,11 +26,14 @@ $(call include,$(bld_root)/cxx/configuration.make) # Aliases # +.PHONY: $(out_base)/ \ + $(out_base)/.test \ + $(out_base)/.install \ + $(out_base)/.clean + ifdef %interactive% -.PHONY: test $(out_base)/.test \ - install $(out_base)/.install \ - clean $(out_base)/.clean +.PHONY: test install clean test: $(out_base)/.test install: $(out_base)/.install @@ -64,4 +67,18 @@ ifneq ($(filter $(MAKECMDGOALS),clean disfigure),) include-dep = endif +# For install, don't include dependecies in examples, and tests. +# +ifneq ($(filter $(MAKECMDGOALS),install),) + +ifneq ($(subst $(src_root)/tests/,,$(src_base)),$(src_base)) +include-dep = +endif + +ifneq ($(subst $(src_root)/examples/,,$(src_base)),$(src_base)) +include-dep = +endif + +endif + .DEFAULT_GOAL := $(def_goal) -- cgit v1.1