From 6c63b913179127e09ed7d9da8920493ccceec6ce Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 2 Mar 2009 12:14:54 +0200 Subject: 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). --- xsde/makefile | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'xsde/makefile') diff --git a/xsde/makefile b/xsde/makefile index 9d25cf9..953fbdb 100644 --- a/xsde/makefile +++ b/xsde/makefile @@ -85,12 +85,14 @@ cxx_tun += processing/inheritance/processor.cxx # # -cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o)) -cxx_od := $(cxx_obj:.o=.o.d) +cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o)) +cxx_od := $(cxx_obj:.o=.o.d) -xsde := $(out_base)/xsde -clean := $(out_base)/.clean -install := $(out_base)/.install +xsde := $(out_base)/xsde +dist := $(out_base)/.dist +dist-win := $(out_base)/.dist-win +clean := $(out_base)/.clean +install := $(out_base)/.install # Import. # @@ -137,14 +139,24 @@ $(call include-dep,$(cxx_od)) .PHONY: $(out_base)/ $(out_base)/: $(xsde) -# install +# Dist. +# +.PHONY: $(dist) $(dist-win) + +$(dist): $(xsde) + $(call install-exec,$<,$(dist_prefix)/bin/xsde) + +$(dist-win): $(xsde) + $(call install-exec,$<,$(dist_prefix)/bin/xsde.exe) + +# Install. # .PHONY: $(install) $(install): $(xsde) $(call install-exec,$<,$(install_bin_dir)/xsde) -# clean +# Clean. # .PHONY: $(clean) -- cgit v1.1