diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-03-02 12:14:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-03-02 12:14:54 +0200 |
commit | 6c63b913179127e09ed7d9da8920493ccceec6ce (patch) | |
tree | 95684b51b4ab60e6468a592a53e33c2cf00027ab /libxsde | |
parent | 3fd3cfc36784be43f545f2f0973e3dc58f475996 (diff) |
Add make support for creating binary distributions
Two new make targets, dist and dist-win, were added that allow one
to create a binary distribution from the current build. The dist
target creates a UNIX distribution while dist-win -- Windows.
The simplified build systems for the runtime library and examples
that were kept separately are now part of the project (the dist/
subdirectory).
Diffstat (limited to 'libxsde')
-rw-r--r-- | libxsde/makefile | 20 | ||||
-rw-r--r-- | libxsde/xsde/makefile | 15 |
2 files changed, 21 insertions, 14 deletions
diff --git a/libxsde/makefile b/libxsde/makefile index dc644f3..0e4e154 100644 --- a/libxsde/makefile +++ b/libxsde/makefile @@ -5,22 +5,16 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make -default := $(out_base)/ -install := $(out_base)/.install -clean := $(out_base)/.clean +default := $(out_base)/ +dist := $(out_base)/.dist +dist-win := $(out_base)/.dist-win +clean := $(out_base)/.clean -.PHONY: $(default) $(install) $(clean) +.PHONY: $(default) $(dist) $(dist-win) $(clean) $(default): $(out_base)/xsde/ +$(dist): $(out_base)/xsde/.dist +$(dist-win): $(out_base)/xsde/.dist-win $(clean): $(out_base)/xsde/.clean -$(install): - $(call install-dir,$(src_base)/xsde,$(install_inc_dir)/xsde) - $(call install-data,$(src_base)/GPLv2,$(install_doc_dir)/libxsde/GPLv2) - $(call install-data,$(src_base)/LICENSE,$(install_doc_dir)/libxsde/LICENSE) - $(call install-data,$(src_base)/README,$(install_doc_dir)/libxsde/README) - - -$(call include,$(bld_root)/install.make) - $(call import,$(src_base)/xsde/makefile) diff --git a/libxsde/xsde/makefile b/libxsde/xsde/makefile index f0deaad..1a90807 100644 --- a/libxsde/xsde/makefile +++ b/libxsde/xsde/makefile @@ -437,7 +437,9 @@ cxx_d := $(cxx_o:.o=.o.d) xsde.l := $(out_base)/xsde.l xsde.l.cpp-options := $(out_base)/xsde.l.cpp-options -clean := $(out_base)/.clean +dist := $(out_base)/.dist +dist-win := $(out_base)/.dist-win +clean := $(out_base)/.clean # Build. @@ -541,6 +543,16 @@ endif $(out_base)/: $(xsde.l) +# Dist. +# +.PHONY: $(dist) $(dist-win) + +$(dist): + $(call install-dir,$(src_base)/c,$(dist_prefix)/libxsde/xsde/c,\( -name '*.h' -o -name '*.c' -o -name COPYING \)) + $(call install-dir,$(src_base)/cxx,$(dist_prefix)/libxsde/xsde/cxx,-name '*.?xx') + +$(dist-win): $(dist) + # Clean. # .PHONY: $(clean) @@ -569,3 +581,4 @@ endif $(call include,$(bld_root)/cxx/o-l.make) $(call include,$(bld_root)/cxx/cxx-o.make) $(call include,$(bld_root)/cxx/cxx-d.make) +$(call include,$(bld_root)/install.make) |