Mercurial > hg > openttd
annotate Makefile.bundle.in @ 20708:bd8f5e4c1617 draft
-Add: Support for a marked/selected range to the textbuf.
author | Michael Lutz <michi@icosahedron.de> |
---|---|
date | Mon, 22 Jul 2013 22:53:00 +0200 |
parents | c95cf6691122 |
children |
rev | line source |
---|---|
12778
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
12719
diff
changeset
|
1 # $Id$ |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
12719
diff
changeset
|
2 |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
12719
diff
changeset
|
3 # This file is part of OpenTTD. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
12719
diff
changeset
|
4 # OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
12719
diff
changeset
|
5 # OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
12719
diff
changeset
|
6 # See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. |
bc7926153e19
(svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents:
12719
diff
changeset
|
7 |
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
|
8 # |
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 # 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
|
10 # |
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 |
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 # The revision is needed for the bundle name and creating an OSX application bundle. |
10086
b4b76a117166
(svn r14262) -Feature [Makefile]: Let Makefile.bundle.in also use the new findversion.sh
matthijs <matthijs@openttd.org>
parents:
10057
diff
changeset
|
13 # Detect the revision |
b4b76a117166
(svn r14262) -Feature [Makefile]: Let Makefile.bundle.in also use the new findversion.sh
matthijs <matthijs@openttd.org>
parents:
10057
diff
changeset
|
14 VERSIONS := $(shell AWK="$(AWK)" "$(ROOT_DIR)/findversion.sh") |
10091
f1270dbc1913
(svn r14272) -Fix [Makefile]: Always pass an explicit delimiter to the "cut" command, in
matthijs <matthijs@openttd.org>
parents:
10086
diff
changeset
|
15 REV := $(shell echo "$(VERSIONS)" | cut -f 1 -d' ') |
10086
b4b76a117166
(svn r14262) -Feature [Makefile]: Let Makefile.bundle.in also use the new findversion.sh
matthijs <matthijs@openttd.org>
parents:
10057
diff
changeset
|
16 |
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
|
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 |
10166
a48a71c1d149
(svn r14358) -Change: make the default bundle name similar to the name of the current compile farm instead of the former compile farm.
rubidium <rubidium@openttd.org>
parents:
10091
diff
changeset
|
23 BUNDLE_NAME = openttd-custom-$(REV)-$(OS) |
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
|
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 |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
28 AI_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/ai |
19958
edbea4ca224e
(svn r24890) -Fix: Distribute GS compat_<version>.nut with OpenTTD
zuu <zuu@openttd.org>
parents:
19660
diff
changeset
|
29 GAME_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/game |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
30 BASESET_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/baseset |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
31 LANG_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/lang |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
32 TTD_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/MacOS |
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
|
33 else |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
34 AI_DIR = $(BUNDLE_DIR)/ai |
19958
edbea4ca224e
(svn r24890) -Fix: Distribute GS compat_<version>.nut with OpenTTD
zuu <zuu@openttd.org>
parents:
19660
diff
changeset
|
35 GAME_DIR = $(BUNDLE_DIR)/game |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
36 BASESET_DIR = $(BUNDLE_DIR)/baseset |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
37 LANG_DIR = $(BUNDLE_DIR)/lang |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
38 TTD_DIR = $(BUNDLE_DIR) |
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
|
39 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
|
40 |
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 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
|
42 @echo '[BUNDLE] Constructing bundle' |
10220
d68752ed1bcd
(svn r14443) -Change: Unify the delimiters used in config* and make*
skidd13 <skidd13@openttd.org>
parents:
10166
diff
changeset
|
43 $(Q)rm -rf "$(BUNDLE_DIR)" |
d68752ed1bcd
(svn r14443) -Change: Unify the delimiters used in config* and make*
skidd13 <skidd13@openttd.org>
parents:
10166
diff
changeset
|
44 $(Q)mkdir -p "$(BUNDLE_DIR)" |
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
|
45 $(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
|
46 $(Q)mkdir -p "$(BUNDLE_DIR)/media" |
10329
e7a823b7c9c1
(svn r14580) -Fix [FS#2404]: scripts directory not being copied into bundles.
rubidium <rubidium@openttd.org>
parents:
10247
diff
changeset
|
47 $(Q)mkdir -p "$(BUNDLE_DIR)/scripts" |
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
|
48 $(Q)mkdir -p "$(TTD_DIR)" |
12784
94a4ff41cdcb
(svn r17264) -Fix (r17261): bundle making for OSX failed
rubidium <rubidium@openttd.org>
parents:
12782
diff
changeset
|
49 $(Q)mkdir -p "$(AI_DIR)" |
19960
c95cf6691122
(svn r24892) -Fix (r24890): Missing mkdir
frosch <frosch@openttd.org>
parents:
19958
diff
changeset
|
50 $(Q)mkdir -p "$(GAME_DIR)" |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
51 $(Q)mkdir -p "$(BASESET_DIR)" |
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
|
52 $(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
|
53 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
|
54 $(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
|
55 $(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
|
56 $(Q)cp "$(ROOT_DIR)/os/macosx/openttd.icns" "$(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/openttd.icns" |
10220
d68752ed1bcd
(svn r14443) -Change: Unify the delimiters used in config* and make*
skidd13 <skidd13@openttd.org>
parents:
10166
diff
changeset
|
57 $(Q)$(ROOT_DIR)/os/macosx/plistgen.sh "$(BUNDLE_DIR)/$(OSXAPP)" "$(REV)" |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
58 $(Q)cp "$(ROOT_DIR)/os/macosx/splash.png" "$(BASESET_DIR)" |
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
|
59 endif |
18089
8028cbd35e30
(svn r22910) -Fix [FS#4617]: icon would (almost) never be shown for SDL builds
rubidium <rubidium@openttd.org>
parents:
16334
diff
changeset
|
60 ifeq ($(OS),UNIX) |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
61 $(Q)cp "$(ROOT_DIR)/media/openttd.32.bmp" "$(BASESET_DIR)/" |
18089
8028cbd35e30
(svn r22910) -Fix [FS#4617]: icon would (almost) never be shown for SDL builds
rubidium <rubidium@openttd.org>
parents:
16334
diff
changeset
|
62 endif |
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
|
63 $(Q)cp "$(BIN_DIR)/$(TTD)" "$(TTD_DIR)/" |
12782
8796923314d6
(svn r17261) -Fix (r17214): don't forget to package the compatability wrapper scripts
rubidium <rubidium@openttd.org>
parents:
12778
diff
changeset
|
64 $(Q)cp "$(BIN_DIR)/ai/"compat_*.nut "$(AI_DIR)/" |
19958
edbea4ca224e
(svn r24890) -Fix: Distribute GS compat_<version>.nut with OpenTTD
zuu <zuu@openttd.org>
parents:
19660
diff
changeset
|
65 $(Q)cp "$(BIN_DIR)/game/"compat_*.nut "$(GAME_DIR)/" |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
66 $(Q)cp "$(BIN_DIR)/baseset/"*.grf "$(BASESET_DIR)/" |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
67 $(Q)cp "$(BIN_DIR)/baseset/"*.obg "$(BASESET_DIR)/" |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
68 $(Q)cp "$(BIN_DIR)/baseset/"*.obs "$(BASESET_DIR)/" |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
69 $(Q)cp "$(BIN_DIR)/baseset/opntitle.dat" "$(BASESET_DIR)/" |
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
70 $(Q)cp "$(BIN_DIR)/baseset/"*.obm "$(BASESET_DIR)/" |
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
|
71 $(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
|
72 $(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
|
73 $(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
|
74 $(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
|
75 $(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
|
76 $(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
|
77 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
|
78 $(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
|
79 $(Q)cp "$(ROOT_DIR)/docs/openttd.6" "$(BUNDLE_DIR)/man/" |
10446
b90baa371bc6
(svn r14701) -Change: Debian's lintian complains about not using the best compression for compressing the man-page.
rubidium <rubidium@openttd.org>
parents:
10385
diff
changeset
|
80 $(Q)gzip -9 "$(BUNDLE_DIR)/man/openttd.6" |
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
|
81 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
|
82 $(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
|
83 $(Q)cp "$(ROOT_DIR)/media/openttd."*.png "$(BUNDLE_DIR)/media/" |
10329
e7a823b7c9c1
(svn r14580) -Fix [FS#2404]: scripts directory not being copied into bundles.
rubidium <rubidium@openttd.org>
parents:
10247
diff
changeset
|
84 $(Q)cp "$(BIN_DIR)/scripts/"* "$(BUNDLE_DIR)/scripts/" |
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
|
85 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
|
86 $(Q)cp "$(ROOT_DIR)/media/openttd.desktop" "$(BUNDLE_DIR)/media/" |
19215
a4e7c26673b4
(svn r24100) -Fix: also provide translated comments in the desktop file without language name postfix
rubidium <rubidium@openttd.org>
parents:
18384
diff
changeset
|
87 $(Q)$(AWK) -f "$(ROOT_DIR)/media/openttd.desktop.translation.awk" "$(SRC_DIR)/lang/"*.txt | $(SORT) | $(AWK) -f "$(ROOT_DIR)/media/openttd.desktop.filter.awk" >> "$(BUNDLE_DIR)/media/openttd.desktop" |
15249
82df7442d0db
(svn r19884) -Feature: translatable desktop shortcut comments
rubidium <rubidium@openttd.org>
parents:
14158
diff
changeset
|
88 $(Q)sed s/=openttd/=$(BINARY_NAME)/g "$(BUNDLE_DIR)/media/openttd.desktop" > "$(ROOT_DIR)/media/openttd.desktop.install" |
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
|
89 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
|
90 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
|
91 $(Q)unix2dos "$(BUNDLE_DIR)/docs/"* "$(BUNDLE_DIR)/readme.txt" "$(BUNDLE_DIR)/COPYING" "$(BUNDLE_DIR)/changelog.txt" "$(BUNDLE_DIR)/known-bugs.txt" |
10385
9709c41adf56
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium <rubidium@openttd.org>
parents:
10335
diff
changeset
|
92 ifeq ($(OS), DOS) |
9709c41adf56
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium <rubidium@openttd.org>
parents:
10335
diff
changeset
|
93 $(Q)cp "$(ROOT_DIR)/os/dos/cwsdpmi.txt" "$(BUNDLE_DIR)/docs/" |
9709c41adf56
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium <rubidium@openttd.org>
parents:
10335
diff
changeset
|
94 ifndef STRIP |
9709c41adf56
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium <rubidium@openttd.org>
parents:
10335
diff
changeset
|
95 $(Q)cp "$(ROOT_DIR)/os/dos/cwsdpmi.exe" "$(TTD_DIR)/" |
9709c41adf56
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium <rubidium@openttd.org>
parents:
10335
diff
changeset
|
96 endif |
9709c41adf56
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium <rubidium@openttd.org>
parents:
10335
diff
changeset
|
97 endif |
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
|
98 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
|
99 |
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 ### 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
|
101 # |
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 # 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
|
103 # 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
|
104 # |
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 # 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
|
106 # |
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 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
|
108 @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
|
109 $(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
|
110 $(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
|
111 |
12719
deb337e930ca
(svn r17184) -Add: 'bundle_7z' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12718
diff
changeset
|
112 bundle_7z: bundle |
deb337e930ca
(svn r17184) -Add: 'bundle_7z' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12718
diff
changeset
|
113 @echo '[BUNDLE] Creating $(BUNDLE_NAME).7z' |
deb337e930ca
(svn r17184) -Add: 'bundle_7z' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12718
diff
changeset
|
114 $(Q)mkdir -p "$(BUNDLES_DIR)" |
deb337e930ca
(svn r17184) -Add: 'bundle_7z' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12718
diff
changeset
|
115 $(Q)cd "$(BUNDLE_DIR)" && 7z a "$(BUNDLES_DIR)/$(BUNDLE_NAME).7z" . |
deb337e930ca
(svn r17184) -Add: 'bundle_7z' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12718
diff
changeset
|
116 |
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
|
117 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
|
118 @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
|
119 $(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
|
120 $(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
|
121 $(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
|
122 $(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
|
123 |
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 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
|
125 @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
|
126 $(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
|
127 $(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
|
128 $(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
|
129 $(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
|
130 |
12718
fb3916022ab0
(svn r17183) -Add [FS#2827]: 'bundle_lzma' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12684
diff
changeset
|
131 bundle_lzma: bundle |
fb3916022ab0
(svn r17183) -Add [FS#2827]: 'bundle_lzma' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12684
diff
changeset
|
132 @echo '[BUNDLE] Creating $(BUNDLE_NAME).tar.lzma' |
fb3916022ab0
(svn r17183) -Add [FS#2827]: 'bundle_lzma' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12684
diff
changeset
|
133 $(Q)mkdir -p "$(BUNDLES_DIR)/.lzma/$(BUNDLE_NAME)" |
fb3916022ab0
(svn r17183) -Add [FS#2827]: 'bundle_lzma' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12684
diff
changeset
|
134 $(Q)cp -R "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.lzma/$(BUNDLE_NAME)/" |
fb3916022ab0
(svn r17183) -Add [FS#2827]: 'bundle_lzma' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12684
diff
changeset
|
135 $(Q)cd "$(BUNDLES_DIR)/.lzma" && tar --lzma -c$(shell if test -n "$(VERBOSE)"; then echo 'v'; fi)f "$(BUNDLES_DIR)/$(BUNDLE_NAME).tar.lzma" "$(BUNDLE_NAME)" |
fb3916022ab0
(svn r17183) -Add [FS#2827]: 'bundle_lzma' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12684
diff
changeset
|
136 $(Q)rm -rf "$(BUNDLES_DIR)/.lzma" |
fb3916022ab0
(svn r17183) -Add [FS#2827]: 'bundle_lzma' to the bundling functions
rubidium <rubidium@openttd.org>
parents:
12684
diff
changeset
|
137 |
16334
41c060616294
(svn r21042) -Change: make it possible to make .tar.xz bundles
rubidium <rubidium@openttd.org>
parents:
16291
diff
changeset
|
138 bundle_xz: bundle |
41c060616294
(svn r21042) -Change: make it possible to make .tar.xz bundles
rubidium <rubidium@openttd.org>
parents:
16291
diff
changeset
|
139 @echo '[BUNDLE] Creating $(BUNDLE_NAME).tar.xz' |
41c060616294
(svn r21042) -Change: make it possible to make .tar.xz bundles
rubidium <rubidium@openttd.org>
parents:
16291
diff
changeset
|
140 $(Q)mkdir -p "$(BUNDLES_DIR)/.xz/$(BUNDLE_NAME)" |
41c060616294
(svn r21042) -Change: make it possible to make .tar.xz bundles
rubidium <rubidium@openttd.org>
parents:
16291
diff
changeset
|
141 $(Q)cp -R "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.xz/$(BUNDLE_NAME)/" |
41c060616294
(svn r21042) -Change: make it possible to make .tar.xz bundles
rubidium <rubidium@openttd.org>
parents:
16291
diff
changeset
|
142 $(Q)cd "$(BUNDLES_DIR)/.xz" && tar --xz -c$(shell if test -n "$(VERBOSE)"; then echo 'v'; fi)f "$(BUNDLES_DIR)/$(BUNDLE_NAME).tar.xz" "$(BUNDLE_NAME)" |
41c060616294
(svn r21042) -Change: make it possible to make .tar.xz bundles
rubidium <rubidium@openttd.org>
parents:
16291
diff
changeset
|
143 $(Q)rm -rf "$(BUNDLES_DIR)/.xz" |
41c060616294
(svn r21042) -Change: make it possible to make .tar.xz bundles
rubidium <rubidium@openttd.org>
parents:
16291
diff
changeset
|
144 |
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
|
145 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
|
146 @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
|
147 $(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
|
148 $(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
|
149 $(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
|
150 $(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
|
151 |
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 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
|
153 @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
|
154 $(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
|
155 $(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
|
156 $(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
|
157 $(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
|
158 |
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 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
|
160 @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
|
161 $(Q)mkdir -p "$(BUNDLES_DIR)" |
15906
6fe686bcda0c
(svn r20590) -Fix: only unix2dos text files when generating the Windows installer
rubidium <rubidium@openttd.org>
parents:
15249
diff
changeset
|
162 $(Q)unix2dos "$(ROOT_DIR)/docs/"*.txt "$(ROOT_DIR)/readme.txt" "$(ROOT_DIR)/COPYING" "$(ROOT_DIR)/changelog.txt" "$(ROOT_DIR)/known-bugs.txt" |
12849
b72fd8020fa5
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
rubidium <rubidium@openttd.org>
parents:
12784
diff
changeset
|
163 $(Q)cd $(ROOT_DIR)/os/windows/installer && makensis.exe //DVERSION_INCLUDE=version_$(PLATFORM).txt install.nsi |
b72fd8020fa5
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
rubidium <rubidium@openttd.org>
parents:
12784
diff
changeset
|
164 $(Q)mv $(ROOT_DIR)/os/windows/installer/*$(PLATFORM).exe "$(BUNDLES_DIR)/$(BUNDLE_NAME).exe" |
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
|
165 |
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 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
|
167 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
|
168 @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
|
169 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
|
170 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
|
171 @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
|
172 $(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
|
173 $(Q)install -d "$(INSTALL_ICON_DIR)" |
12782
8796923314d6
(svn r17261) -Fix (r17214): don't forget to package the compatability wrapper scripts
rubidium <rubidium@openttd.org>
parents:
12778
diff
changeset
|
174 $(Q)install -d "$(INSTALL_DATA_DIR)/ai" |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
175 $(Q)install -d "$(INSTALL_DATA_DIR)/baseset" |
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
|
176 $(Q)install -d "$(INSTALL_DATA_DIR)/lang" |
10335
2dfb259d3f5d
(svn r14586) -Fix (r14580): missing mkdir causing make install to fail when there's no scripts directory already.
rubidium <rubidium@openttd.org>
parents:
10329
diff
changeset
|
177 $(Q)install -d "$(INSTALL_DATA_DIR)/scripts" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
178 ifeq ($(TTD), openttd.exe) |
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
179 $(Q)install -m 755 "$(BUNDLE_DIR)/$(TTD)" "$(INSTALL_BINARY_DIR)/${BINARY_NAME}.exe" |
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
180 else |
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
181 $(Q)install -m 755 "$(BUNDLE_DIR)/$(TTD)" "$(INSTALL_BINARY_DIR)/${BINARY_NAME}" |
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
182 endif |
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
|
183 $(Q)install -m 644 "$(BUNDLE_DIR)/lang/"* "$(INSTALL_DATA_DIR)/lang" |
12782
8796923314d6
(svn r17261) -Fix (r17214): don't forget to package the compatability wrapper scripts
rubidium <rubidium@openttd.org>
parents:
12778
diff
changeset
|
184 $(Q)install -m 644 "$(BUNDLE_DIR)/ai/"* "$(INSTALL_DATA_DIR)/ai" |
18384
8254bd0872b2
(svn r23220) -Change: move the baseset files to their new location
rubidium <rubidium@openttd.org>
parents:
18089
diff
changeset
|
185 $(Q)install -m 644 "$(BUNDLE_DIR)/baseset/"* "$(INSTALL_DATA_DIR)/baseset" |
10329
e7a823b7c9c1
(svn r14580) -Fix [FS#2404]: scripts directory not being copied into bundles.
rubidium <rubidium@openttd.org>
parents:
10247
diff
changeset
|
186 $(Q)install -m 644 "$(BUNDLE_DIR)/scripts/"* "$(INSTALL_DATA_DIR)/scripts" |
16291
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
187 ifndef DO_NOT_INSTALL_DOCS |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
188 $(Q)install -d "$(INSTALL_DOC_DIR)" |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
189 $(Q)install -m 644 "$(BUNDLE_DIR)/docs/"* "$(BUNDLE_DIR)/readme.txt" "$(BUNDLE_DIR)/known-bugs.txt" "$(INSTALL_DOC_DIR)" |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
190 endif |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
191 ifndef DO_NOT_INSTALL_CHANGELOG |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
192 $(Q)install -d "$(INSTALL_DOC_DIR)" |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
193 $(Q)install -m 644 "$(BUNDLE_DIR)/changelog.txt" "$(INSTALL_DOC_DIR)" |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
194 endif |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
195 ifndef DO_NOT_INSTALL_LICENSE |
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
196 $(Q)install -d "$(INSTALL_DOC_DIR)" |
10243
a38f219f65a2
(svn r14473) -Fix: also install the root .txt and COPYING files to docs/
truebrain <truebrain@openttd.org>
parents:
10242
diff
changeset
|
197 $(Q)install -m 644 "$(BUNDLE_DIR)/COPYING" "$(INSTALL_DOC_DIR)" |
16291
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
198 endif |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
199 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.32.xpm" "$(INSTALL_ICON_DIR)/${BINARY_NAME}.32.xpm" |
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
|
200 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
|
201 $(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
|
202 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/16x16/apps" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
203 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.16.png" "$(INSTALL_ICON_THEME_DIR)/16x16/apps/${BINARY_NAME}.png" |
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
|
204 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/32x32/apps" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
205 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.32.png" "$(INSTALL_ICON_THEME_DIR)/32x32/apps/${BINARY_NAME}.png" |
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
|
206 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/48x48/apps" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
207 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.48.png" "$(INSTALL_ICON_THEME_DIR)/48x48/apps/${BINARY_NAME}.png" |
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
|
208 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/64x64/apps" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
209 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.64.png" "$(INSTALL_ICON_THEME_DIR)/64x64/apps/${BINARY_NAME}.png" |
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
|
210 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/128x128/apps" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
211 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.128.png" "$(INSTALL_ICON_THEME_DIR)/128x128/apps/${BINARY_NAME}.png" |
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
|
212 $(Q)install -d "$(INSTALL_ICON_THEME_DIR)/256x256/apps" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
213 $(Q)install -m 644 "$(BUNDLE_DIR)/media/openttd.256.png" "$(INSTALL_ICON_THEME_DIR)/256x256/apps/${BINARY_NAME}.png" |
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
|
214 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
|
215 $(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
|
216 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
|
217 ifdef MAN_DIR |
16291
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
218 ifndef DO_NOT_INSTALL_MAN |
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
|
219 $(Q)install -d "$(INSTALL_MAN_DIR)" |
10244
31333cb09958
(svn r14474) -Add: allow --binary-name to set the name of the binary, icon, desktop file, etc. when installing. Useful to get a stable next to a trunk-nightly
truebrain <truebrain@openttd.org>
parents:
10243
diff
changeset
|
220 $(Q)install -m 644 "$(BUNDLE_DIR)/man/openttd.6.gz" "$(INSTALL_MAN_DIR)/${BINARY_NAME}.6.gz" |
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
|
221 endif |
16291
0b73411ad93a
(svn r20999) -Change: Add installing options or rather options to not install certain documentation, in a similar way to GRFCodec/catcodec
rubidium <rubidium@openttd.org>
parents:
15906
diff
changeset
|
222 endif |
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
|
223 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
|
224 $(Q)install -d "$(INSTALL_MENU_DIR)" |
10247
f5425de1bb3f
(svn r14477) -Fix r14474: also name the links in the .desktop file correclty upon install
truebrain <truebrain@openttd.org>
parents:
10244
diff
changeset
|
225 $(Q)install -m 644 "$(ROOT_DIR)/media/openttd.desktop.install" "$(INSTALL_MENU_DIR)/${BINARY_NAME}.desktop" |
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
|
226 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
|
227 endif # OSXAPP |