Permalink
Browse files

Copy sample data during build

  • Loading branch information...
bcui6611 committed Oct 5, 2011
1 parent b4b6dd0 commit 11076c6b8183574eccdf619fcd36efa215ed1150
Showing with 11 additions and 2 deletions.
  1. +8 −1 Makefile.am
  2. +3 −1 configure.ac
View
@@ -17,6 +17,13 @@ bin_SCRIPTS = ${PYTHON_TOOLS}
EXTRA_DIST = $(pythonlib_SCRIPTS)
install-data-hook:
- cp -rf $(COUCHBASE_PYTHON_LIB) $(pythonlibdir)
+ if test ! "$(mkdir_p)" = ""; then \
+ $(mkdir_p) "$(DESTDIR)$(localstatedatdir)"; \
+ else \
+ echo "WARNING: You may have to create these directories by hand."; \
+ mkdir -p "$(DESTDIR)$(localstatedatdir)"; \
+ fi
+ cp -rf $(COUCHBASE_PYTHON_LIB) $(pythonlibdir) && \
+ cp gamesim-sample.zip $(DESTDIR)$(localstatedatdir)
View
@@ -7,4 +7,6 @@ m4_include([m4/version.m4])
AC_INIT(couchbase-examples, VERSION_NUMBER, bin@couchbase.com)
AM_INIT_AUTOMAKE
AC_CONFIG_FILES(Makefile, wrapper/wrapper)
-AC_OUTPUT
+AC_SUBST([localstatedatdir], [${localstatedir}/dat/${package_identifier}])
+
+AC_OUTPUT

0 comments on commit 11076c6

Please sign in to comment.