aboutsummaryrefslogtreecommitdiff
path: root/xsde/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-03-02 12:14:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-03-02 12:14:54 +0200
commit6c63b913179127e09ed7d9da8920493ccceec6ce (patch)
tree95684b51b4ab60e6468a592a53e33c2cf00027ab /xsde/makefile
parent3fd3cfc36784be43f545f2f0973e3dc58f475996 (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 'xsde/makefile')
-rw-r--r--xsde/makefile26
1 files changed, 19 insertions, 7 deletions
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)