summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-11 18:26:53 +0000
committerrubidium <rubidium@openttd.org>2007-01-11 18:26:53 +0000
commit387f046a24ae60d85c5d26659054e9efb0b67ef0 (patch)
tree45925f2ad8db1c4473756c21c34c07d3d96bf7a1
parent33be1ecfb1a9056b027d50d7b558cff87c5b744d (diff)
downloadopenttd-387f046a24ae60d85c5d26659054e9efb0b67ef0.tar.xz
(svn r8067) -Fix (r7759): if bin/$(TTD) was removed, it did not get placed back on make unless $(TTD) got relinked.
-rw-r--r--Makefile.src.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.src.in b/Makefile.src.in
index cc3b54888..00fe53cec 100644
--- a/Makefile.src.in
+++ b/Makefile.src.in
@@ -60,7 +60,7 @@ else
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 @@ $(OBJS_RC): %.o: $(SRC_DIR)/%.rc $(FILE_DEP)
$(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