annotate Makefile.bundle.in @ 10057:4e7bc09b8533 draft

(svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
author truebrain <truebrain@openttd.org>
date Tue, 02 Sep 2008 15:34:38 +0000
parents
children b4b76a117166
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10057
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
1 #
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
2 # Creation of bundles
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
3 #
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
4
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
5 # The revision is needed for the bundle name and creating an OSX application bundle.
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
6 ifdef REVISION
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
7 REV := $(REVISION)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
8 else
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
9 # Are we a SVN dir?
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
10 ifeq ($(shell if test -d $(SRC_DIR)/.svn; then echo 1; fi), 1)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
11 # Find if the local source if modified
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
12 REV_MODIFIED := $(shell svnversion $(SRC_DIR) | sed -n 's/.*\(M\).*/\1/p' )
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
13 # Find the revision like: rXXXX-branch
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
14 REV := $(shell LC_ALL=C svn info $(SRC_DIR) | $(AWK) '/^URL:.*branches/ { split($$2, a, "/"); for (i in a) if(a[i]=="branches") { BRANCH="-"a[i+1]; break } } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
15 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
16 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
17 # Make sure we have something in REV
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
18 ifeq ($(REV),)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
19 REV := norev000
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
20 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
21
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
22 ifndef BUNDLE_NAME
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
23 BUNDLE_NAME = OTTD-$(OS)-custom-$(REV)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
24 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
25
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
26 # An OSX application bundle needs the data files, lang files and openttd executable in a different location.
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
27 ifdef OSXAPP
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
28 DATA_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/data
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
29 LANG_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/lang
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
30 TTD_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/MacOS
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
31 else
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
32 DATA_DIR = $(BUNDLE_DIR)/data
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
33 LANG_DIR = $(BUNDLE_DIR)/lang
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
34 TTD_DIR = $(BUNDLE_DIR)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
35 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
36
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
37 bundle: all
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
38 @echo '[BUNDLE] Constructing bundle'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
39 $(Q)rm -rf "${BUNDLE_DIR}"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
40 $(Q)mkdir -p "${BUNDLE_DIR}"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
41 $(Q)mkdir -p "$(BUNDLE_DIR)/docs"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
42 $(Q)mkdir -p "$(BUNDLE_DIR)/scenario"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
43 $(Q)mkdir -p "$(BUNDLE_DIR)/scenario/heightmap"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
44 $(Q)mkdir -p "$(BUNDLE_DIR)/media"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
45 $(Q)mkdir -p "$(TTD_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
46 $(Q)mkdir -p "$(DATA_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
47 $(Q)mkdir -p "$(LANG_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
48 ifdef OSXAPP
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
49 $(Q)mkdir -p "$(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
50 $(Q)echo "APPL????" > "$(BUNDLE_DIR)/$(OSXAPP)/Contents/PkgInfo"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
51 $(Q)cp "$(ROOT_DIR)/os/macosx/openttd.icns" "$(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/openttd.icns"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
52 $(Q)$(ROOT_DIR)/os/macosx/plistgen.sh "${BUNDLE_DIR}/$(OSXAPP)" "$(REV)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
53 $(Q)cp "$(ROOT_DIR)/docs/OSX_install_instructions.txt" "$(BUNDLE_DIR)/docs/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
54 $(Q)cp "$(ROOT_DIR)/os/macosx/splash.png" "$(DATA_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
55 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
56 $(Q)cp "$(BIN_DIR)/$(TTD)" "$(TTD_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
57 $(Q)cp "$(BIN_DIR)/data/"*.grf "$(DATA_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
58 $(Q)cp "$(BIN_DIR)/data/"*.obg "$(DATA_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
59 $(Q)cp "$(BIN_DIR)/data/opntitle.dat" "$(DATA_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
60 $(Q)cp "$(BIN_DIR)/lang/"*.lng "$(LANG_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
61 $(Q)cp "$(ROOT_DIR)/readme.txt" "$(BUNDLE_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
62 $(Q)cp "$(ROOT_DIR)/COPYING" "$(BUNDLE_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
63 $(Q)cp "$(ROOT_DIR)/known-bugs.txt" "$(BUNDLE_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
64 $(Q)cp "$(ROOT_DIR)/docs/multiplayer.txt" "$(BUNDLE_DIR)/docs/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
65 $(Q)cp "$(ROOT_DIR)/docs/32bpp.txt" "$(BUNDLE_DIR)/docs/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
66 $(Q)cp "$(ROOT_DIR)/changelog.txt" "$(BUNDLE_DIR)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
67 ifdef MAN_DIR
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
68 $(Q)mkdir -p "$(BUNDLE_DIR)/man/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
69 $(Q)cp "$(ROOT_DIR)/docs/openttd.6" "$(BUNDLE_DIR)/man/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
70 $(Q)gzip "$(BUNDLE_DIR)/man/openttd.6"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
71 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
72 $(Q)cp "$(ROOT_DIR)/media/openttd.32.xpm" "$(BUNDLE_DIR)/media/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
73 $(Q)cp "$(ROOT_DIR)/media/openttd."*.png "$(BUNDLE_DIR)/media/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
74 ifdef MENU_DIR
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
75 $(Q)cp "$(ROOT_DIR)/media/openttd.desktop" "$(BUNDLE_DIR)/media/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
76 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
77 ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/\"*.scn 2> /dev/null`"; then echo 1; fi), 1)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
78 $(Q)cp "$(BIN_DIR)/scenario/"*.scn "$(BUNDLE_DIR)/scenario/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
79 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
80 ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/heightmaps/\"* 2>/dev/null`"; then echo 1; fi), 1)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
81 $(Q)cp "$(BIN_DIR)/scenario/heightmaps/"* "$(BUNDLE_DIR)/scenario/heightmap/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
82 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
83 ifeq ($(TTD), openttd.exe)
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
84 $(Q)unix2dos "$(BUNDLE_DIR)/docs/"* "$(BUNDLE_DIR)/readme.txt" "$(BUNDLE_DIR)/COPYING" "$(BUNDLE_DIR)/changelog.txt" "$(BUNDLE_DIR)/known-bugs.txt"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
85 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
86
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
87 ### Packing the current bundle into several compressed file formats ###
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
88 #
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
89 # Zips & dmgs do not contain a root folder, i.e. they have files in the root of the zip/dmg.
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
90 # gzip, bzip2 and lha archives have a root folder, with the same name as the bundle.
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
91 #
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
92 # One can supply a custom name by adding BUNDLE_NAME:=<name> to the make command.
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
93 #
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
94 bundle_zip: bundle
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
95 @echo '[BUNDLE] Creating $(BUNDLE_NAME).zip'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
96 $(Q)mkdir -p "$(BUNDLES_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
97 $(Q)cd "$(BUNDLE_DIR)" && zip -r $(shell if test -z "$(VERBOSE)"; then echo '-q'; fi) "$(BUNDLES_DIR)/$(BUNDLE_NAME).zip" .
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
98
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
99 bundle_gzip: bundle
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
100 @echo '[BUNDLE] Creating $(BUNDLE_NAME).tar.gz'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
101 $(Q)mkdir -p "$(BUNDLES_DIR)/.gzip/$(BUNDLE_NAME)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
102 $(Q)cp -R "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.gzip/$(BUNDLE_NAME)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
103 $(Q)cd "$(BUNDLES_DIR)/.gzip" && tar -zc$(shell if test -n "$(VERBOSE)"; then echo 'v'; fi)f "$(BUNDLES_DIR)/$(BUNDLE_NAME).tar.gz" "$(BUNDLE_NAME)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
104 $(Q)rm -rf "$(BUNDLES_DIR)/.gzip"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
105
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
106 bundle_bzip2: bundle
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
107 @echo '[BUNDLE] Creating $(BUNDLE_NAME).tar.bz2'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
108 $(Q)mkdir -p "$(BUNDLES_DIR)/.bzip2/$(BUNDLE_NAME)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
109 $(Q)cp -R "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.bzip2/$(BUNDLE_NAME)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
110 $(Q)cd "$(BUNDLES_DIR)/.bzip2" && tar -jc$(shell if test -n "$(VERBOSE)"; then echo 'v'; fi)f "$(BUNDLES_DIR)/$(BUNDLE_NAME).tar.bz2" "$(BUNDLE_NAME)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
111 $(Q)rm -rf "$(BUNDLES_DIR)/.bzip2"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
112
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
113 bundle_lha: bundle
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
114 @echo '[BUNDLE] Creating $(BUNDLE_NAME).lha'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
115 $(Q)mkdir -p "$(BUNDLES_DIR)/.lha/$(BUNDLE_NAME)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
116 $(Q)cp -R "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.lha/$(BUNDLE_NAME)/"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
117 $(Q)cd "$(BUNDLES_DIR)/.lha" && lha ao6 "$(BUNDLES_DIR)/$(BUNDLE_NAME).lha" "$(BUNDLE_NAME)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
118 $(Q)rm -rf "$(BUNDLES_DIR)/.lha"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
119
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
120 bundle_dmg: bundle
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
121 @echo '[BUNDLE] Creating $(BUNDLE_NAME).dmg'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
122 $(Q)mkdir -p "$(BUNDLES_DIR)/OpenTTD $(REV)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
123 $(Q)cp -R "$(BUNDLE_DIR)/" "$(BUNDLES_DIR)/OpenTTD $(REV)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
124 $(Q)hdiutil create -ov -format UDZO -srcfolder "$(BUNDLES_DIR)/OpenTTD $(REV)" "$(BUNDLES_DIR)/$(BUNDLE_NAME).dmg"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
125 $(Q)rm -fr "$(BUNDLES_DIR)/OpenTTD $(REV)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
126
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
127 bundle_exe: all
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
128 @echo '[BUNDLE] Creating $(BUNDLE_NAME).exe'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
129 $(Q)mkdir -p "$(BUNDLES_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
130 $(Q)unix2dos "$(ROOT_DIR)/docs/"* "$(ROOT_DIR)/readme.txt" "$(ROOT_DIR)/COPYING" "$(ROOT_DIR)/changelog.txt" "$(ROOT_DIR)/known-bugs.txt"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
131 $(Q)cd $(ROOT_DIR)/os/win32/installer && makensis.exe //DVERSION_INCLUDE=version_$(PLATFORM).txt install.nsi
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
132 $(Q)mv $(ROOT_DIR)/os/win32/installer/*$(PLATFORM).exe "$(BUNDLES_DIR)/$(BUNDLE_NAME).exe"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
133
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
134 ifdef OSXAPP
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
135 install:
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
136 @echo '[INSTALL] Cannot install the OSX Application Bundle'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
137 else
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
138 install: bundle
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
139 @echo '[INSTALL] Installing OpenTTD'
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
140 $(Q)install -d "$(INSTALL_BINARY_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
141 $(Q)install -d "$(INSTALL_ICON_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
142 $(Q)install -d "$(INSTALL_DATA_DIR)/gm"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
143 $(Q)install -d "$(INSTALL_DATA_DIR)/data"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
144 $(Q)install -d "$(INSTALL_DATA_DIR)/lang"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
145 $(Q)install -d "$(INSTALL_DOC_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
146 $(Q)install -m 755 "$(BUNDLE_DIR)/$(TTD)" "$(INSTALL_BINARY_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
147 $(Q)install -m 644 "$(BUNDLE_DIR)/lang/"* "$(INSTALL_DATA_DIR)/lang"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
148 $(Q)install -m 644 "$(BUNDLE_DIR)/data/"* "$(INSTALL_DATA_DIR)/data"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
149 $(Q)install -m 644 "$(BUNDLE_DIR)/docs/"* "$(INSTALL_DOC_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
150 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.32.xpm" "$(INSTALL_ICON_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
151 ifdef ICON_THEME_DIR
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
152 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
153 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/16x16/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
154 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.16.png" "$(INSTALL_ICON_THEME_DIR)/16x16/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
155 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/32x32/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
156 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.32.png" "$(INSTALL_ICON_THEME_DIR)/32x32/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
157 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/48x48/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
158 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.48.png" "$(INSTALL_ICON_THEME_DIR)/48x48/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
159 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/64x64/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
160 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.64.png" "$(INSTALL_ICON_THEME_DIR)/64x64/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
161 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/128x128/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
162 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.128.png" "$(INSTALL_ICON_THEME_DIR)/128x128/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
163 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/256x256/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
164 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.256.png" "$(INSTALL_ICON_THEME_DIR)/256x256/apps"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
165 else
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
166 $(Q)install -m 644 "$(BUNDLE_DIR)/media/"*.png "$(INSTALL_ICON_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
167 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
168 ifdef MAN_DIR
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
169 $(Q)install -d "$(INSTALL_MAN_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
170 $(Q)install -m 644 "$(BUNDLE_DIR)/man/openttd.6.gz" "$(INSTALL_MAN_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
171 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
172 ifdef MENU_DIR
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
173 $(Q)install -d "$(INSTALL_MENU_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
174 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.desktop" "$(INSTALL_MENU_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
175 endif
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
176 $(Q)cp -R "$(BUNDLE_DIR)/scenario" "$(INSTALL_DATA_DIR)"
4e7bc09b8533 (svn r14224) -Fix: copy Makefile.bundle too to your working dir, so you don't need to run ./configure in the root of OpenTTD
truebrain <truebrain@openttd.org>
parents:
diff changeset
177 endif # OSXAPP