Makefile
changeset 1865 739183b1243a
parent 1829 e90fe433fa7d
child 1891 862800791170
equal deleted inserted replaced
1864:80e13d54b061 1865:739183b1243a
    81 # So, the following paths should be defined if INSTALL is defined.
    81 # So, the following paths should be defined if INSTALL is defined.
    82 # None of these paths have to end with /
    82 # None of these paths have to end with /
    83 # PREFIX:	Normally /usr/local
    83 # PREFIX:	Normally /usr/local
    84 # BINARY_DIR:	The location of the binary, normally games. (Will be prefixed
    84 # BINARY_DIR:	The location of the binary, normally games. (Will be prefixed
    85 #		with $PREFIX)
    85 #		with $PREFIX)
    86 # DATA_DIR: 	The location of the data (lang, data and gm), normally
    86 # DATA_DIR: 	The location of the data (lang, data, gm and scenario), normally
    87 #		share/games/openttd. (Will be prefixed with $PREFIX)
    87 #		share/games/openttd. (Will be prefixed with $PREFIX) Note that scenarios
       
    88 #		are only put here if USE_HOMEDIR is true, otherwise they are placed in
       
    89 #		PERSONAL_DIR/scenario
    88 # PERSONAL_DIR:	The directory where openttd.cfg and the save folder will be
    90 # PERSONAL_DIR:	The directory where openttd.cfg and the save folder will be
    89 #		stored. You cannot use ~ here, define USE_HOMEDIR for that.
    91 #		stored. You cannot use ~ here, define USE_HOMEDIR for that.
    90 # USE_HOMEDIR:	If this variable is set, PERSONAL_DIR will be prefixed with
    92 # USE_HOMEDIR:	If this variable is set, PERSONAL_DIR will be prefixed with
    91 #		~/ at runtime (the user's homedir)
    93 #		~/ at runtime (the user's homedir)
    92 # SECOND_DATA_PATH  Use this data dir if a file is not found in the data dir in the data path
    94 # SECOND_DATA_PATH  Use this data dir if a file is not found in the data dir in the data path
   952 # care about extra /'s
   954 # care about extra /'s
   953 	install -d $(DATA_DIR_INSTALL)/lang \
   955 	install -d $(DATA_DIR_INSTALL)/lang \
   954 	           $(DATA_DIR_INSTALL)/data \
   956 	           $(DATA_DIR_INSTALL)/data \
   955 	           $(DATA_DIR_INSTALL)/gm \
   957 	           $(DATA_DIR_INSTALL)/gm \
   956 	           $(BINARY_DIR_INSTALL)
   958 	           $(BINARY_DIR_INSTALL)
   957 	mkdir -p   $(PERSONAL_DIR)/scenario
   959 ifndef USE_HOMEDIR
       
   960 	mkdir -p $(PERSONAL_DIR)/scenario
       
   961 else
       
   962 	mkdir -p $(DATA_DIR_INSTALL)/scenario
       
   963 endif
   958 	install $(TTD) $(BINARY_DIR_INSTALL)
   964 	install $(TTD) $(BINARY_DIR_INSTALL)
   959 	install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang
   965 	install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang
   960 	install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data
   966 	install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data
   961 	install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data
   967 	install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data
   962 	install -m 644 media/openttd.64.png $(DATA_DIR_INSTALL)
   968 	install -m 644 media/openttd.64.png $(DATA_DIR_INSTALL)
       
   969 	install -m 644 media/openttd.32.xpm $(DATA_DIR_INSTALL)
       
   970 ifndef USE_HOMEDIR
   963 	cp scenario/* $(PERSONAL_DIR)/scenario/
   971 	cp scenario/* $(PERSONAL_DIR)/scenario/
       
   972 else
       
   973 	cp scenario/* $(DATA_DIR_INSTALL)/scenario/
       
   974 endif
   964 else	#MorphOS
   975 else	#MorphOS
   965 install:
   976 install:
   966 	$(error make install is not supported on MorphOS)
   977 	$(error make install is not supported on MorphOS)
   967 endif
   978 endif
   968 else	# OSX
   979 else	# OSX