diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-02 22:25:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-02 22:25:48 +0200 |
commit | 2088891f11ab7aa3f843239cebe06a2850117b0b (patch) | |
tree | 3d80655c14ab4bc8101af4bc56e9ac99105a56d3 /build/bootstrap.make | |
parent | 4eb47d2965ca832243ed80f4140c34cfbed96863 (diff) |
Add automake build system support
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r-- | build/bootstrap.make | 33 |
1 files changed, 12 insertions, 21 deletions
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) |