summaryrefslogtreecommitdiff
path: root/Makefile.bundle.in
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-15 13:03:19 +0000
committerrubidium <rubidium@openttd.org>2009-01-15 13:03:19 +0000
commit606ef3c1795b9fefe0e31d0f79a0a336dc3aa1db (patch)
treece022eac409bca33c6736355a265ec6c9d8676e3 /Makefile.bundle.in
parent1ee0c4caf43a8db43050ef0af3530061cad740fc (diff)
downloadopenttd-606ef3c1795b9fefe0e31d0f79a0a336dc3aa1db.tar.xz
(svn r15089) -Fix: make install not installing the AI directory and thus the AI libraries were missing in the debian builds.
Diffstat (limited to 'Makefile.bundle.in')
-rw-r--r--Makefile.bundle.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.bundle.in b/Makefile.bundle.in
index 7796dff5a..433a63396 100644
--- a/Makefile.bundle.in
+++ b/Makefile.bundle.in
@@ -155,6 +155,7 @@ install: bundle
$(Q)install -d "$(INSTALL_DATA_DIR)/data"
$(Q)install -d "$(INSTALL_DATA_DIR)/lang"
$(Q)install -d "$(INSTALL_DATA_DIR)/scripts"
+ $(Q)for i in `find "$(BUNDLE_DIR)/ai" -type d -not -iregex '.*/\.svn.*' | sed "s~$(BUNDLE_DIR)~$(INSTALL_DATA_DIR)~"`; do install -d "$$i"; done
$(Q)install -d "$(INSTALL_DOC_DIR)"
ifeq ($(TTD), openttd.exe)
$(Q)install -m 755 "$(BUNDLE_DIR)/$(TTD)" "$(INSTALL_BINARY_DIR)/${BINARY_NAME}.exe"
@@ -168,6 +169,7 @@ endif
$(Q)install -m 644 "$(BUNDLE_DIR)/"*.txt "$(INSTALL_DOC_DIR)"
$(Q)install -m 644 "$(BUNDLE_DIR)/COPYING" "$(INSTALL_DOC_DIR)"
$(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.32.xpm" "$(INSTALL_ICON_DIR)/${BINARY_NAME}.32.xpm"
+ $(Q)for i in `find "$(BUNDLE_DIR)/ai" -type d -not -iregex '.*/\.svn.*'`; do if [ -n "`ls "$$i/"*.* 2>/dev/null`" ]; then install -m 664 "$$i/"*.* "`echo $$i | sed "s~$(BUNDLE_DIR)~$(INSTALL_DATA_DIR)~"`"; fi; done
ifdef ICON_THEME_DIR
$(Q)install -d "$(INSTALL_ICON_THEME_DIR)"
$(Q)install -d "$(INSTALL_ICON_THEME_DIR)/16x16/apps"