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 /makefile | |
parent | 4eb47d2965ca832243ed80f4140c34cfbed96863 (diff) |
Add automake build system support
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 39 |
1 files changed, 21 insertions, 18 deletions
@@ -5,31 +5,34 @@ include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make +dirs := odb + default := $(out_base)/ -test := $(out_base)/.test -install := $(out_base)/.install +dist := $(out_base)/.dist clean := $(out_base)/.clean cleandoc := $(out_base)/.cleandoc -$(default): $(out_base)/odb/ - - -# Test. -# -$(test): $(out_base)/tests/.test - - -# Install. -# -$(install): $(out_base)/odb/.install +$(default): $(addprefix $(out_base)/,$(addsuffix /,$(dirs))) +$(dist): export dirs := $(dirs) +$(dist): export docs := GPLv2 LICENSE README version +$(dist): data_dist := +$(dist): exec_dist := bootstrap +$(dist): export extra_dist := $(data_dist) $(exec_dist) +$(dist): export version = $(shell cat $(src_root)/version) -# Clean. -# -$(clean): $(out_base)/odb/.clean +$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(dirs))) + $(call dist-data,$(docs) $(data_dist)) + $(call dist-exec,$(exec_dist)) + $(call dist-dir,m4) + $(call meta-automake) + $(call meta-autoconf) +$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(dirs))) $(cleandoc): $(out_base)/doc/.cleandoc -$(call include,$(bld_root)/install.make) +$(call include,$(bld_root)/dist.make) +$(call include,$(bld_root)/meta/automake.make) +$(call include,$(bld_root)/meta/autoconf.make) -$(call import,$(src_base)/odb/makefile) +$(foreach d,$(dirs),$(call import,$(src_base)/$d/makefile)) |