summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7a17f357e..266b72f8c 100644
--- a/Makefile
+++ b/Makefile
@@ -846,7 +846,7 @@ table/strings.h: lang/english.txt $(STRGEN)
lang/%.lng: lang/%.txt $(STRGEN) lang/english.txt
@echo '===> Compiling language $(*F)'
- $(Q)$(STRGEN) $(STRGEN_FLAGS) $< $(LANG_ERRORS)
+ $(Q)$(STRGEN) $(STRGEN_FLAGS) $< $(LANG_ERRORS) || rm -f $@
winres.o: openttd.rc
@echo '===> Compiling resource $<'