diff options
author | matthijs <matthijs@openttd.org> | 2005-05-28 10:32:09 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-05-28 10:32:09 +0000 |
commit | 457434ea596db1bf2e9014bc605144e066b32047 (patch) | |
tree | 1e0731c2afb44c950bf3784bc83956761dc45393 /Makefile | |
parent | ed2ab1f5d9623ddc7c7a72682649e966d40d7076 (diff) | |
download | openttd-457434ea596db1bf2e9014bc605144e066b32047.tar.xz |
(svn r2371) - Fix: [ 1144510 ] make install tries to install scenarios in the (non-existing) personal dir when USE_HOMEDIR is specified.
This fix solves the issue for now by installing scenarios in the system-wide data dir.
- Add: 32x32 xpm format icon, used for debian packaging.
- Some minor updates to the os/debian directory.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -83,8 +83,10 @@ # PREFIX: Normally /usr/local # BINARY_DIR: The location of the binary, normally games. (Will be prefixed # with $PREFIX) -# DATA_DIR: The location of the data (lang, data and gm), normally -# share/games/openttd. (Will be prefixed with $PREFIX) +# DATA_DIR: The location of the data (lang, data, gm and scenario), normally +# share/games/openttd. (Will be prefixed with $PREFIX) Note that scenarios +# are only put here if USE_HOMEDIR is true, otherwise they are placed in +# PERSONAL_DIR/scenario # PERSONAL_DIR: The directory where openttd.cfg and the save folder will be # stored. You cannot use ~ here, define USE_HOMEDIR for that. # USE_HOMEDIR: If this variable is set, PERSONAL_DIR will be prefixed with @@ -954,13 +956,22 @@ endif $(DATA_DIR_INSTALL)/data \ $(DATA_DIR_INSTALL)/gm \ $(BINARY_DIR_INSTALL) - mkdir -p $(PERSONAL_DIR)/scenario +ifndef USE_HOMEDIR + mkdir -p $(PERSONAL_DIR)/scenario +else + mkdir -p $(DATA_DIR_INSTALL)/scenario +endif install $(TTD) $(BINARY_DIR_INSTALL) install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data install -m 644 media/openttd.64.png $(DATA_DIR_INSTALL) + install -m 644 media/openttd.32.xpm $(DATA_DIR_INSTALL) +ifndef USE_HOMEDIR cp scenario/* $(PERSONAL_DIR)/scenario/ +else + cp scenario/* $(DATA_DIR_INSTALL)/scenario/ +endif else #MorphOS install: $(error make install is not supported on MorphOS) |