Makefile.src.in
changeset 5861 11c77d9df7fb
parent 5838 9c3129cb019b
child 5901 e2e5001f4390
--- a/Makefile.src.in	Thu Jan 11 17:29:39 2007 +0000
+++ b/Makefile.src.in	Thu Jan 11 18:26:53 2007 +0000
@@ -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