Makefile.in
author celestar
Sun, 11 Mar 2007 09:28:58 +0000
branchcustombridgeheads
changeset 5651 335d9bd345b0
parent 5648 1608018c5ff2
permissions -rw-r--r--
(svn r9109) [cbh] -Fix: Stabilize the reversing of trains on bridges/bridgeheads a little (it still crashes at times however). Also re-allow the construction of signals on bridgeheads
5643
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     1
# Auto-generated file -- DO NOT EDIT
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     2
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     3
# Check if we want to show what we are doing
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     4
ifdef VERBOSE
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     5
	Q =
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     6
else
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     7
	Q = @
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     8
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
     9
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    10
include Makefile.am
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    11
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    12
SOURCE_LIST = !!SOURCE_LIST!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    13
CONFIG_CACHE_SOURCE_LIST = !!CONFIG_CACHE_SOURCE_LIST!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    14
CONFIGURE_FILES = !!CONFIGURE_FILES!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    15
LIPO = !!LIPO!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    16
BIN_DIR = !!BIN_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    17
SRC_DIR = !!SRC_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    18
ROOT_DIR = !!ROOT_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    19
BUNDLE_DIR = "$(ROOT_DIR)/bundle"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    20
BUNDLES_DIR = "$(ROOT_DIR)/bundles"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    21
INSTALL_DIR = !!INSTALL_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    22
INSTALL_BINARY_DIR = "$(INSTALL_DIR)/"!!BINARY_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    23
INSTALL_ICON_DIR = "$(INSTALL_DIR)/"!!ICON_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    24
INSTALL_DATA_DIR = "$(INSTALL_DIR)/"!!DATA_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    25
INSTALL_PERSONAL_DIR = !!PERSONAL_DIR!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    26
# TODO: ENABLE_INSTALL should be removed when the search path patch has been applied
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    27
ENABLE_INSTALL = !!ENABLE_INSTALL!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    28
TTD = !!TTD!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    29
TTDS = $(SRC_DIRS:%=%/$(TTD))
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    30
OS = !!OS!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    31
OSXAPP = !!OSXAPP!!
5648
1608018c5ff2 (svn r8059) [cbh] - Sync with r7788:8032 from trunk
celestar
parents: 5645
diff changeset
    32
REVISION = !!REVISION!!
5643
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    33
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    34
RES := $(shell if ! [ -f $(CONFIG_CACHE_SOURCE_LIST) ] || [ -n "`cmp $(CONFIG_CACHE_SOURCE_LIST) $(SOURCE_LIST)`" ]; then cp $(SOURCE_LIST) $(CONFIG_CACHE_SOURCE_LIST); fi )
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    35
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    36
all: config.cache
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    37
	@for dir in $(DIRS); do \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    38
		$(MAKE) -C $$dir all; \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    39
	done
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    40
ifdef LIPO
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    41
# Lipo is an OSX thing. If it is defined, it means we are building for universal,
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    42
# and so we have have to combine the binaries into one big binary
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    43
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    44
# Remove the last binary made by the last compiled target
5645
72ebd9e4cd64 (svn r7792) [cbh] -Sync: with trunk r7759:7788.
rubidium
parents: 5643
diff changeset
    45
	$(Q)rm -f $(BIN_DIR)/$(TTD)
5643
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    46
# Make all the binaries into one
5645
72ebd9e4cd64 (svn r7792) [cbh] -Sync: with trunk r7759:7788.
rubidium
parents: 5643
diff changeset
    47
	$(Q)$(LIPO) -create -output $(BIN_DIR)/$(TTD) $(TTDS)
5643
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    48
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    49
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    50
config.cache: $(CONFIG_CACHE_SOURCE_LIST) $(CONFIGURE_FILES)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    51
ifeq ($(shell if test -f config.cache; then echo 1; fi), 1)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    52
	@echo "----------------"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    53
	@echo "The system detected that source.list or any configure file is altered."
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    54
	@echo " Going to reconfigure with last known settings..."
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    55
	@echo "----------------"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    56
# Make sure we don't lock config.cache
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    57
	@$(shell cat config.cache) || exit 1
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    58
	@echo "----------------"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    59
	@echo "Reconfig done. Now compiling..."
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    60
	@echo "----------------"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    61
else
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    62
	@echo "----------------"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    63
	@echo "Have not found a configuration, please run configure first."
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    64
	@echo "----------------"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    65
	@exit 1
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    66
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    67
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    68
clean:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    69
	@for dir in $(DIRS); do \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    70
		$(MAKE) -C $$dir clean; \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    71
	done
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    72
	$(Q)rm -rf $(BUNDLE_TARGET)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    73
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    74
lang:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    75
	@for dir in $(LANG_DIRS); do \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    76
		$(MAKE) -C $$dir all; \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    77
	done
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    78
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    79
mrproper:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    80
	@for dir in $(DIRS); do \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    81
		$(MAKE) -C $$dir mrproper; \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    82
		rm -f $$dir/Makefile; \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    83
	done
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    84
	$(Q)rm -rf objs
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    85
	$(Q)rm -f Makefile Makefile.am
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    86
	$(Q)rm -f $(CONFIG_CACHE_SOURCE_LIST) config.cache config.log
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    87
	$(Q)rm -rf $(BUNDLE_DIR)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    88
	$(Q)rm -rf $(BUNDLES_DIR)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    89
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    90
depend:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    91
	@for dir in $(SRC_DIRS); do \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    92
		$(MAKE) -C $$dir depend; \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    93
	done
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    94
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    95
run: all
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    96
	$(Q)cd !!BIN_DIR!! && ./!!TTD!!
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    97
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    98
%.o:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
    99
	@for dir in $(SRC_DIRS); do \
5648
1608018c5ff2 (svn r8059) [cbh] - Sync with r7788:8032 from trunk
celestar
parents: 5645
diff changeset
   100
		$(MAKE) -C $$dir $(@:src/%=%); \
5643
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   101
	done
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   102
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   103
%.lng:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   104
	@for dir in $(LANG_DIRS); do \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   105
		$(MAKE) -C $$dir $@; \
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   106
	done
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   107
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   108
#
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   109
# Creation of bundles
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   110
#
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   111
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   112
# The revision is needed for the bundle name and creating an OSX application bundle.
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   113
ifdef REVISION
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   114
REV := $(REVISION)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   115
else
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   116
# Are we a SVN dir?
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   117
ifeq ($(shell if test -d $(SRC_DIR)/.svn; then echo 1; fi), 1)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   118
# Find if the local source if modified
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   119
REV_MODIFIED := $(shell svnversion $(SRC_DIR) | sed -n 's/.*\(M\).*/\1/p' )
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   120
# Find the revision like: rXXXX-branch
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   121
REV := $(shell LC_ALL=C svn info $(SRC_DIR) | awk '/^URL:.*branches/ { split($$2, a, "/"); BRANCH="-"a[5] } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   122
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   123
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   124
# Make sure we have something in REV
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   125
ifeq ($(REV),)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   126
REV := norev000
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   127
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   128
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   129
ifndef BUNDLE_NAME
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   130
BUNDLE_NAME = OTTD-$(OS)-custom-$(REV)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   131
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   132
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   133
# An OSX application bundle needs the data files, lang files and openttd executable in a different location.
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   134
ifdef OSXAPP
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   135
DATA_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Data
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   136
LANG_DIR = $(BUNDLE_DIR)/$(OSXAPP)/Contents/Lang
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   137
TTD_DIR  = $(BUNDLE_DIR)/$(OSXAPP)/Contents/MacOS
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   138
else
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   139
DATA_DIR = $(BUNDLE_DIR)/data
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   140
LANG_DIR = $(BUNDLE_DIR)/lang
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   141
TTD_DIR  = $(BUNDLE_DIR)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   142
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   143
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   144
bundle: all
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   145
	@echo '[BUNDLE] Constructing bundle'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   146
	$(Q)rm -rf   "${BUNDLE_DIR}"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   147
	$(Q)mkdir -p "${BUNDLE_DIR}"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   148
	$(Q)mkdir -p "$(BUNDLE_DIR)/docs"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   149
	$(Q)mkdir -p "$(BUNDLE_DIR)/scenario"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   150
	$(Q)mkdir -p "$(BUNDLE_DIR)/scenario/heightmap"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   151
	$(Q)mkdir -p "$(BUNDLE_DIR)/media"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   152
	$(Q)mkdir -p "$(TTD_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   153
	$(Q)mkdir -p "$(DATA_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   154
	$(Q)mkdir -p "$(LANG_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   155
ifdef OSXAPP
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   156
	$(Q)mkdir -p "$(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   157
	$(Q)echo "APPL????" >                                          "$(BUNDLE_DIR)/$(OSXAPP)/Contents/PkgInfo"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   158
	$(Q)cp    "$(ROOT_DIR)/os/macosx/openttd.icns"                 "$(BUNDLE_DIR)/$(OSXAPP)/Contents/Resources/openttd.icns"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   159
	$(Q)$(ROOT_DIR)/os/macosx/plistgen.sh                          "${BUNDLE_DIR}/$(OSXAPP)" "$(REV)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   160
	$(Q)cp    "$(ROOT_DIR)/docs/OSX_install_instructions.txt"      "$(BUNDLE_DIR)/docs/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   161
	$(Q)cp    "$(ROOT_DIR)/os/macosx/splash.png"                   "$(DATA_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   162
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   163
	$(Q)cp "$(BIN_DIR)/$(TTD)"                "$(TTD_DIR)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   164
	$(Q)cp "$(BIN_DIR)/data/"*.grf            "$(DATA_DIR)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   165
	$(Q)cp "$(BIN_DIR)/data/opntitle.dat"     "$(DATA_DIR)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   166
	$(Q)cp "$(BIN_DIR)/lang/"*.lng            "$(LANG_DIR)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   167
	$(Q)cp "$(ROOT_DIR)/readme.txt"           "$(BUNDLE_DIR)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   168
	$(Q)cp "$(ROOT_DIR)/COPYING"              "$(BUNDLE_DIR)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   169
	$(Q)cp "$(ROOT_DIR)/known-bugs.txt"       "$(BUNDLE_DIR)/docs/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   170
	$(Q)cp "$(ROOT_DIR)/docs/multiplayer.txt" "$(BUNDLE_DIR)/docs/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   171
	$(Q)cp "$(ROOT_DIR)/changelog.txt"        "$(BUNDLE_DIR)/docs/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   172
	$(Q)cp "$(ROOT_DIR)/media/openttd.64.png" "$(BUNDLE_DIR)/media/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   173
	$(Q)cp "$(ROOT_DIR)/media/openttd.32.xpm" "$(BUNDLE_DIR)/media/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   174
	$(Q)cp "$(ROOT_DIR)/media/openttd.32.bmp" "$(BUNDLE_DIR)/media/"
5645
72ebd9e4cd64 (svn r7792) [cbh] -Sync: with trunk r7759:7788.
rubidium
parents: 5643
diff changeset
   175
ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/\"*.scn 2> /dev/null`"; then echo 1; fi), 1)
5643
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   176
	$(Q)cp "$(BIN_DIR)/scenario/"*.scn        "$(BUNDLE_DIR)/scenario/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   177
endif
5645
72ebd9e4cd64 (svn r7792) [cbh] -Sync: with trunk r7759:7788.
rubidium
parents: 5643
diff changeset
   178
ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/heightmaps/\"* 2>/dev/null`"; then echo 1; fi), 1)
5643
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   179
	$(Q)cp "$(BIN_DIR)/scenario/heightmaps/"* "$(BUNDLE_DIR)/scenario/heightmap/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   180
endif
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   181
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   182
### Packing the current bundle into several compressed file formats ###
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   183
#
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   184
# Zips & dmgs do not contain a root folder, i.e. they have files in the root of the zip/dmg.
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   185
# gzip, bzip2 and lha archives have a root folder, with the same name as the bundle.
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   186
#
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   187
# One can supply a custom name by adding BUNDLE_NAME:=<name> to the make command.
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   188
#
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   189
bundle_zip: bundle
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   190
	@echo '[BUNDLE] Creating $(BUNDLE_NAME).zip'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   191
	$(Q)mkdir -p "$(BUNDLES_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   192
	$(Q)cd "$(BUNDLE_DIR)" && zip -r $(shell if test -z "$(VERBOSE)"; then echo '-q'; fi) "$(BUNDLES_DIR)/$(BUNDLE_NAME).zip" .
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   193
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   194
bundle_gzip: bundle
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   195
	@echo '[BUNDLE] Creating $(BUNDLE_NAME).tar.gz'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   196
	$(Q)mkdir -p "$(BUNDLES_DIR)/.gzip/$(BUNDLE_NAME)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   197
	$(Q)cp -R    "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.gzip/$(BUNDLE_NAME)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   198
	$(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)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   199
	$(Q)rm -rf   "$(BUNDLES_DIR)/.gzip"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   200
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   201
bundle_bzip2: bundle
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   202
	@echo '[BUNDLE] Creating $(BUNDLE_NAME).tar.bz2'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   203
	$(Q)mkdir -p "$(BUNDLES_DIR)/.bzip2/$(BUNDLE_NAME)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   204
	$(Q)cp -R    "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.bzip2/$(BUNDLE_NAME)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   205
	$(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)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   206
	$(Q)rm -rf   "$(BUNDLES_DIR)/.bzip2"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   207
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   208
bundle_lha: bundle
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   209
	@echo '[BUNDLE] Creating $(BUNDLE_NAME).lha'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   210
	$(Q)mkdir -p "$(BUNDLES_DIR)/.lha/$(BUNDLE_NAME)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   211
	$(Q)cp -R    "$(BUNDLE_DIR)/"* "$(BUNDLES_DIR)/.lha/$(BUNDLE_NAME)/"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   212
	$(Q)cd "$(BUNDLES_DIR)/.lha" && lha ao6 "$(BUNDLES_DIR)/$(BUNDLE_NAME).lha" "$(BUNDLE_NAME)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   213
	$(Q)rm -rf   "$(BUNDLES_DIR)/.lha"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   214
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   215
bundle_dmg: bundle
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   216
	@echo '[BUNDLE] Creating $(BUNDLE_NAME).dmg'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   217
	$(Q)mkdir -p "$(BUNDLES_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   218
	$(Q)hdiutil create -ov -format UDZO -srcfolder "$(BUNDLE_DIR)" "$(BUNDLES_DIR)/$(BUNDLE_NAME).dmg"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   219
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   220
# TODO: ENABLE_INSTALL should be removed when the search path patch has been applied
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   221
ifeq ($(ENABLE_INSTALL), 0)
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   222
install:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   223
	@echo '[INSTALL] Cannot install. Not compiled with installation paths'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   224
else
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   225
ifdef OSXAPP
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   226
install:
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   227
	@echo '[INSTALL] Cannot install the OSX Application Bundle'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   228
else
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   229
install: bundle
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   230
	@echo '[INSTALL] Installing OpenTTD'
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   231
	$(Q)install -d "$(INSTALL_BINARY_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   232
	$(Q)install -d "$(INSTALL_ICON_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   233
	$(Q)install -d "$(INSTALL_DATA_DIR)/gm"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   234
	$(Q)install -d "$(INSTALL_DATA_DIR)/data"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   235
	$(Q)install -d "$(INSTALL_DATA_DIR)/lang"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   236
	$(Q)install -d "$(INSTALL_DATA_DIR)/docs"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   237
	$(Q)install -m 755 "$(BUNDLE_DIR)/$(TTD)" "$(INSTALL_BINARY_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   238
	$(Q)install -m 644 "$(BUNDLE_DIR)/lang/"* "$(INSTALL_DATA_DIR)/lang"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   239
	$(Q)install -m 644 "$(BUNDLE_DIR)/data/"* "$(INSTALL_DATA_DIR)/data"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   240
	$(Q)install -m 644 "$(BUNDLE_DIR)/docs/"* "$(INSTALL_DATA_DIR)/docs"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   241
	$(Q)install -m 644 "$(BUNDLE_DIR)/media/"* "$(INSTALL_ICON_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   242
ifdef INSTALL_PERSONAL_DIR
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   243
	$(Q)mkdir -p ~/"$(INSTALL_PERSONAL_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   244
	$(Q)cp -R "$(BUNDLE_DIR)/scenario" ~/"$(INSTALL_PERSONAL_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   245
else
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   246
	$(Q)cp -R "$(BUNDLE_DIR)/scenario" "$(INSTALL_DATA_DIR)"
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   247
endif # INSTALL_PERSONAL_DIR
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   248
endif # OSXAPP
3778051e8095 (svn r7790) [cbh] -Sync: execute the same script for /branches/custombridgeheads as was done for /trunk in r7759.
rubidium
parents:
diff changeset
   249
endif # ENABLE_INSTALL