aboutsummaryrefslogtreecommitdiff
path: root/libxsde/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 /libxsde/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 'libxsde/xsde/makefile')
-rw-r--r--libxsde/xsde/makefile15
1 files changed, 14 insertions, 1 deletions
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)