aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-22 14:40:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-22 14:40:53 +0200
commit3c853bc264719437bcb2807d75ff5e9f9a3ea4f8 (patch)
treee9405b1078b0ed8a7be6c296d1a50653c1785b89 /makefile
parent8564df32f304589dfdffe46140a75f6e5d44523c (diff)
Add distribution-specific files, dist and dist-win targets
Diffstat (limited to 'makefile')
-rw-r--r--makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/makefile b/makefile
index d82be89..701c953 100644
--- a/makefile
+++ b/makefile
@@ -8,6 +8,8 @@ include $(dir $(lastword $(MAKEFILE_LIST)))build/bootstrap.make
default := $(out_base)/
test := $(out_base)/.test
install := $(out_base)/.install
+dist := $(out_base)/.dist
+dist-win := $(out_base)/.dist-win
clean := $(out_base)/.clean
cleandoc := $(out_base)/.cleandoc
@@ -18,8 +20,12 @@ $(default): $(out_base)/xsd/ \
$(out_base)/examples/ \
$(out_base)/documentation/
+# Test.
+#
$(test): $(out_base)/tests/.test
+# Install.
+#
$(install): $(out_base)/xsd/.install \
$(out_base)/libxsd/.install \
$(out_base)/documentation/.install
@@ -29,7 +35,48 @@ $(install): $(out_base)/xsd/.install \
$(call install-data,$(src_base)/NEWS,$(install_doc_dir)/xsd/NEWS)
$(call install-data,$(src_base)/README,$(install_doc_dir)/xsd/README)
+# Dist.
+#
+$(dist): $(out_base)/xsd/.dist \
+ $(out_base)/libxsd/.dist \
+ $(out_base)/examples/.dist \
+ $(out_base)/documentation/.dist
+ $(call install-dir,$(src_base)/dist/examples/build,$(dist_prefix)/examples/build)
+ $(call install-dir,$(src_base)/dist/examples/cxx,$(dist_prefix)/examples/cxx,-name makefile)
+ $(call install-data,$(src_base)/dist/examples/makefile,$(dist_prefix)/examples/makefile)
+ $(call install-data,$(src_base)/dist/README-UNIX,$(dist_prefix)/README)
+ $(call install-data,$(src_base)/GPLv2,$(dist_prefix)/GPLv2)
+ $(call install-data,$(src_base)/FLOSSE,$(dist_prefix)/FLOSSE)
+ $(call install-data,$(src_base)/LICENSE,$(dist_prefix)/LICENSE)
+ $(call install-data,$(src_base)/NEWS,$(dist_prefix)/NEWS)
+ $(call install-data,$(src_base)/version,$(dist_prefix)/version)
+$(dist-win): $(out_base)/xsd/.dist-win \
+ $(out_base)/libxsd/.dist-win \
+ $(out_base)/examples/.dist-win \
+ $(out_base)/documentation/.dist-win
+ $(call install-dir,$(src_base)/dist/etc,$(dist_prefix)/etc)
+ $(call install-dir,$(src_base)/dist/examples/build,$(dist_prefix)/examples/build)
+ $(call install-dir,$(src_base)/dist/examples/cxx,$(dist_prefix)/examples/cxx)
+ $(call install-data,$(src_base)/dist/examples/makefile,$(dist_prefix)/examples/makefile)
+ $(call install-data,$(src_base)/dist/README-WINDOWS,$(dist_prefix)/README.txt)
+ $(call message,,unix2dos $(dist_prefix)/README.txt)
+ $(call install-data,$(src_base)/dist/README-UNIX,$(dist_prefix)/README-CYGWIN.txt)
+ $(call message,,unix2dos $(dist_prefix)/README-CYGWIN.txt)
+ $(call install-data,$(src_base)/GPLv2,$(dist_prefix)/GPLv2.txt)
+ $(call message,,unix2dos $(dist_prefix)/GPLv2.txt)
+ $(call install-data,$(src_base)/FLOSSE,$(dist_prefix)/FLOSSE.txt)
+ $(call message,,unix2dos $(dist_prefix)/FLOSSE.txt)
+ $(call install-data,$(src_base)/LICENSE,$(dist_prefix)/LICENSE.txt)
+ $(call message,,unix2dos $(dist_prefix)/LICENSE.txt)
+ $(call install-data,$(src_base)/NEWS,$(dist_prefix)/NEWS.txt)
+ $(call message,,unix2dos $(dist_prefix)/NEWS.txt)
+ $(call install-data,$(src_base)/version,$(dist_prefix)/version.txt)
+ $(call message,,unix2dos $(dist_prefix)/version.txt)
+
+
+# Clean.
+#
$(clean): $(out_base)/xsd/.clean \
$(out_base)/tests/.clean \
$(out_base)/examples/.clean