mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 21:18:10 +00:00
(svn r3456) - Feature: [Makefile] Icons can now be installed in a seperate directory.
This commit is contained in:
parent
9c1ad5d610
commit
585b47b6c5
8
Makefile
8
Makefile
@ -83,6 +83,8 @@
|
||||
# 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
|
||||
# ICON_DIR: The location of the openttd icon. (Will be prefixed with
|
||||
# $PREFIX).
|
||||
# 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
|
||||
@ -570,10 +572,12 @@ ifdef INSTALL
|
||||
# the prefix is not prepended in the makefile config
|
||||
BINARY_DIR_PREFIXED:=$(PREFIX)/$(BINARY_DIR)
|
||||
DATA_DIR_PREFIXED:=$(PREFIX)/$(DATA_DIR)
|
||||
ICON_DIR_PREFIXED:=$(PREFIX)/$(ICON_DIR)
|
||||
# We use _INSTALL vars here, these vars are the locations where the files will
|
||||
# be installed
|
||||
DATA_DIR_INSTALL=$(DEST_DIR)/$(DATA_DIR_PREFIXED)
|
||||
BINARY_DIR_INSTALL=$(DEST_DIR)/$(BINARY_DIR_PREFIXED)
|
||||
ICON_DIR_INSTALL=$(DEST_DIR)/$(ICON_DIR_PREFIXED)
|
||||
# Let the code know where to find stuff
|
||||
ifdef DATA_DIR_PREFIXED
|
||||
CDEFS += -DGAME_DATA_DIR=\"$(DATA_DIR_PREFIXED)/\"
|
||||
@ -922,8 +926,8 @@ endif
|
||||
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)
|
||||
install -m 644 media/openttd.64.png $(ICON_DIR_INSTALL)
|
||||
install -m 644 media/openttd.32.xpm $(ICON_DIR_INSTALL)
|
||||
ifndef USE_HOMEDIR
|
||||
cp scenario/* $(PERSONAL_DIR)/scenario/
|
||||
else
|
||||
|
@ -42,6 +42,7 @@ $(MAKE_CONFIG):
|
||||
$(call CONFIG_LINE,PREFIX:=$(PREFIX))
|
||||
$(call CONFIG_LINE,BINARY_DIR:=$(BINARY_DIR))
|
||||
$(call CONFIG_LINE,DATA_DIR:=$(DATA_DIR))
|
||||
$(call CONFIG_LINE,ICON_DIR:=$(ICON_DIR))
|
||||
$(call CONFIG_LINE,USE_HOMEDIR:=$(USE_HOMEDIR))
|
||||
$(call CONFIG_LINE,PERSONAL_DIR:=$(PERSONAL_DIR))
|
||||
$(call CONFIG_LINE,SECOND_DATA_PATH:=$(SECOND_DATA_PATH))
|
||||
|
Loading…
Reference in New Issue
Block a user