From 2088891f11ab7aa3f843239cebe06a2850117b0b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Sep 2010 22:25:48 +0200 Subject: Add automake build system support --- build/bootstrap.make | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) (limited to 'build') diff --git a/build/bootstrap.make b/build/bootstrap.make index 3078be4..733abef 100644 --- a/build/bootstrap.make +++ b/build/bootstrap.make @@ -27,22 +27,28 @@ $(call include,$(bld_root)/cxx/configuration.make) # Aliases # .PHONY: $(out_base)/ \ - $(out_base)/.test \ - $(out_base)/.install \ + $(out_base)/.dist \ $(out_base)/.clean \ $(out_base)/.cleandoc ifdef %interactive% -.PHONY: test install clean cleandoc +.PHONY: dist clean cleandoc -test: $(out_base)/.test -install: $(out_base)/.install -clean: $(out_base)/.clean +dist: $(out_base)/.dist +clean: $(out_base)/.clean cleandoc: $(out_base)/.cleandoc endif +# Make sure the distribution prefix is set if the goal is dist. +# +ifneq ($(filter $(MAKECMDGOALS),dist),) +ifeq ($(dist_prefix),) +$(error dist_prefix is not set) +endif +endif + ifdef cxx_id # It would be better to do these checks in the script once instead @@ -69,25 +75,10 @@ endef endif - # Don't include dependency info for certain targets. # ifneq ($(filter $(MAKECMDGOALS),clean cleandoc 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