equal
deleted
inserted
replaced
81 # with $PREFIX) |
81 # with $PREFIX) |
82 # DATA_DIR: The location of the data (lang, data, gm and scenario), normally |
82 # DATA_DIR: The location of the data (lang, data, gm and scenario), normally |
83 # share/games/openttd. (Will be prefixed with $PREFIX) Note that scenarios |
83 # share/games/openttd. (Will be prefixed with $PREFIX) Note that scenarios |
84 # are only put here if USE_HOMEDIR is true, otherwise they are placed in |
84 # are only put here if USE_HOMEDIR is true, otherwise they are placed in |
85 # PERSONAL_DIR/scenario |
85 # PERSONAL_DIR/scenario |
|
86 # ICON_DIR: The location of the openttd icon. (Will be prefixed with |
|
87 # $PREFIX). |
86 # PERSONAL_DIR: The directory where openttd.cfg and the save folder will be |
88 # PERSONAL_DIR: The directory where openttd.cfg and the save folder will be |
87 # stored. You cannot use ~ here, define USE_HOMEDIR for that. |
89 # stored. You cannot use ~ here, define USE_HOMEDIR for that. |
88 # USE_HOMEDIR: If this variable is set, PERSONAL_DIR will be prefixed with |
90 # USE_HOMEDIR: If this variable is set, PERSONAL_DIR will be prefixed with |
89 # ~/ at runtime (the user's homedir) |
91 # ~/ at runtime (the user's homedir) |
90 # SECOND_DATA_PATH Use this data dir if a file is not found in the data dir in the data path |
92 # SECOND_DATA_PATH Use this data dir if a file is not found in the data dir in the data path |
568 ifdef INSTALL |
570 ifdef INSTALL |
569 # We use _PREFIXED vars here, so the paths are recalculated every time, and |
571 # We use _PREFIXED vars here, so the paths are recalculated every time, and |
570 # the prefix is not prepended in the makefile config |
572 # the prefix is not prepended in the makefile config |
571 BINARY_DIR_PREFIXED:=$(PREFIX)/$(BINARY_DIR) |
573 BINARY_DIR_PREFIXED:=$(PREFIX)/$(BINARY_DIR) |
572 DATA_DIR_PREFIXED:=$(PREFIX)/$(DATA_DIR) |
574 DATA_DIR_PREFIXED:=$(PREFIX)/$(DATA_DIR) |
|
575 ICON_DIR_PREFIXED:=$(PREFIX)/$(ICON_DIR) |
573 # We use _INSTALL vars here, these vars are the locations where the files will |
576 # We use _INSTALL vars here, these vars are the locations where the files will |
574 # be installed |
577 # be installed |
575 DATA_DIR_INSTALL=$(DEST_DIR)/$(DATA_DIR_PREFIXED) |
578 DATA_DIR_INSTALL=$(DEST_DIR)/$(DATA_DIR_PREFIXED) |
576 BINARY_DIR_INSTALL=$(DEST_DIR)/$(BINARY_DIR_PREFIXED) |
579 BINARY_DIR_INSTALL=$(DEST_DIR)/$(BINARY_DIR_PREFIXED) |
|
580 ICON_DIR_INSTALL=$(DEST_DIR)/$(ICON_DIR_PREFIXED) |
577 # Let the code know where to find stuff |
581 # Let the code know where to find stuff |
578 ifdef DATA_DIR_PREFIXED |
582 ifdef DATA_DIR_PREFIXED |
579 CDEFS += -DGAME_DATA_DIR=\"$(DATA_DIR_PREFIXED)/\" |
583 CDEFS += -DGAME_DATA_DIR=\"$(DATA_DIR_PREFIXED)/\" |
580 endif |
584 endif |
581 |
585 |
920 endif |
924 endif |
921 install $(TTD) $(BINARY_DIR_INSTALL) |
925 install $(TTD) $(BINARY_DIR_INSTALL) |
922 install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang |
926 install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang |
923 install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data |
927 install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data |
924 install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data |
928 install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data |
925 install -m 644 media/openttd.64.png $(DATA_DIR_INSTALL) |
929 install -m 644 media/openttd.64.png $(ICON_DIR_INSTALL) |
926 install -m 644 media/openttd.32.xpm $(DATA_DIR_INSTALL) |
930 install -m 644 media/openttd.32.xpm $(ICON_DIR_INSTALL) |
927 ifndef USE_HOMEDIR |
931 ifndef USE_HOMEDIR |
928 cp scenario/* $(PERSONAL_DIR)/scenario/ |
932 cp scenario/* $(PERSONAL_DIR)/scenario/ |
929 else |
933 else |
930 cp scenario/* $(DATA_DIR_INSTALL)/scenario/ |
934 cp scenario/* $(DATA_DIR_INSTALL)/scenario/ |
931 endif |
935 endif |