diff --git a/src/backend/tsearch/Makefile b/src/backend/tsearch/Makefile
index a55b15c0f08679bc0081e4d3bbd0a25347217d74..96cbb32715b490feeb9c53946fa02cca11309497 100644
--- a/src/backend/tsearch/Makefile
+++ b/src/backend/tsearch/Makefile
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 2006-2008, PostgreSQL Global Development Group
 #
-# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.4 2008/01/01 19:45:52 momjian Exp $
+# $PostgreSQL: pgsql/src/backend/tsearch/Makefile,v 1.5 2008/02/18 16:04:32 petere Exp $
 #
 #-------------------------------------------------------------------------
 subdir = src/backend/tsearch
@@ -32,7 +32,7 @@ depend dep:
 .PHONY: install-data
 install-data: $(DICTFILES) installdirs
 	for i in $(DICTFILES); \
-		do $(INSTALL_DATA) $(srcdir)/$$i '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i; \
+		do $(INSTALL_DATA) $(srcdir)/$$i '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i || exit; \
 	done
 
 installdirs:
@@ -41,7 +41,7 @@ installdirs:
 .PHONY: uninstall-data
 uninstall-data:
 	for i in $(DICTFILES); \
-		do rm -rf '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i ; \
+		do rm -rf '$(DESTDIR)$(datadir)/$(DICTDIR)/'$$i || exit; \
 	done
 
 clean distclean maintainer-clean: