From 1568fa3b216e580aac29fdfb4bc2cb39c87d161b Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 23 Jun 2003 19:51:21 +0000 Subject: [PATCH] Make sure to return an error if the file generation fails. --- documentation/Makefile.in | 10 +++++----- programs/Makefile.in | 4 ++-- tools/winebuild/Makefile.in | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/documentation/Makefile.in b/documentation/Makefile.in index 40db5bb9391..eb0f0b1e62c 100644 --- a/documentation/Makefile.in +++ b/documentation/Makefile.in @@ -101,24 +101,24 @@ wine-user.pdf wine-user.ps wine-user/index.html: $(WINE_USER_SRCS) winelib-user.pdf winelib-user.ps winelib-user/index.html: $(WINELIB_USER_SRCS) wine.man: wine.man.in - sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || $(RM) $@ + sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/wine.man.in >$@ || ($(RM) $@ && false) # Rules for distribution tarballs of formatted docs dist: wine-doc-ps.tar.gz wine-doc-pdf.tar.gz wine-doc-html.tar.gz wine-doc-txt.tar.gz wine-doc-ps.tar.gz: $(ALLBOOKS:%=%.ps) - tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || $(RM) $@ + tar cf - $(ALLBOOKS:%=%.ps) | gzip -9 > $@ || ($(RM) $@ && false) wine-doc-pdf.tar.gz: $(ALLBOOKS:%=%.pdf) - tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || $(RM) $@ + tar cf - $(ALLBOOKS:%=%.pdf) | gzip -9 > $@ || ($(RM) $@ && false) wine-doc-html.tar.gz: $(ALLBOOKS:%=%/index.html) - tar cf - $(ALLBOOKS:%=%/*.html) | gzip -9 > $@ || $(RM) $@ + tar cf - $(ALLBOOKS:%=%/*.html) | gzip -9 > $@ || ($(RM) $@ && false) wine-doc-txt.tar.gz: $(ALLBOOKS:%=%/index.html) for i in $(ALLBOOKS:%=%/*.html); do w3m -dump $$i > `dirname $$i`/`basename $$i .html`.txt || exit 1; done - tar cf - $(ALLBOOKS:%=%/*.txt) | gzip -9 > $@ || $(RM) $@ + tar cf - $(ALLBOOKS:%=%/*.txt) | gzip -9 > $@ || ($(RM) $@ && false) install:: $(MAN_TARGETS) $(MKINSTALLDIRS) $(mandir)/man$(prog_manext) $(mandir)/man$(conf_manext) $(mandir)/man$(api_manext) diff --git a/programs/Makefile.in b/programs/Makefile.in index 5a6e5c88759..8f31bfcce35 100644 --- a/programs/Makefile.in +++ b/programs/Makefile.in @@ -95,10 +95,10 @@ SYMLINKS = \ all: wineapploader winelauncher $(SUBDIRS) $(SYMLINKS:%=%$(DLLEXT)) wineapploader: wineapploader.in - sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || $(RM) $@ + sed -e 's,@bindir\@,$(bindir),g' $(SRCDIR)/wineapploader.in >$@ || ($(RM) $@ && false) winelauncher: winelauncher.in - sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || $(RM) $@ + sed -e 's,@bindir\@,$(bindir),g' -e 's,@libdir\@,$(libdir),g' -e 's,@dlldir\@,$(dlldir),g' $(SRCDIR)/winelauncher.in >$@ || ($(RM) $@ && false) # Rules for installation diff --git a/tools/winebuild/Makefile.in b/tools/winebuild/Makefile.in index 8b97e80c9a7..39dd8c840a0 100644 --- a/tools/winebuild/Makefile.in +++ b/tools/winebuild/Makefile.in @@ -26,7 +26,7 @@ winebuild$(EXEEXT): $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPORT) $(LDFLAGS) winebuild.man: winebuild.man.in - sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/winebuild.man.in >$@ || $(RM) $@ + sed -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $(SRCDIR)/winebuild.man.in >$@ || ($(RM) $@ && false) install:: $(PROGRAMS) winebuild.man $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)