Mercurial > hg > openttd
changeset 5610:5762b3a3883d draft
(svn r8067) -Fix (r7759): if bin/$(TTD) was removed, it did not get placed back on make unless $(TTD) got relinked.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 11 Jan 2007 18:26:53 +0000 |
parents | 358c07fb3212 |
children | 110b802130b4 |
files | Makefile.src.in |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.src.in +++ b/Makefile.src.in @@ -60,7 +60,7 @@ endif # Our default target -all: $(TTD) +all: $(BIN_DIR)/$(TTD) # This are 2 rules that are pointing back to STRGEN stuff. # There is not really a need to have them here, but in case @@ -219,13 +219,15 @@ $(E) '$(STAGE) Compiling resource $(<:$(SRC_DIR)/%.rc=%.rc)' $(Q)$(WINDRES) -o $@ -I $(MEDIA_DIR) $< +$(BIN_DIR)/$(TTD): $(TTD) + $(Q)cp $< $@ + $(TTD): rev.o $(OBJS) $(CONFIG_CACHE_LINKER) $(E) '$(STAGE) Linking $@' $(Q)$(CXX_HOST) $(LDFLAGS) rev.o $(OBJS) $(LIBS) -o $@ ifdef STRIP $(Q)$(STRIP) $@ endif - $(Q)cp $@ $(BIN_DIR)/ # The targets to compile the endian-code