From: Mark Adler Date: Sun, 24 Mar 2013 23:57:32 +0000 (-0700) Subject: In Makefile uninstall, don't rm if preceding cd fails. X-Git-Tag: v1.2.7.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81c3068b9ac4e75a4c65338e5b95f421478f5295;p=thirdparty%2Fzlib-ng.git In Makefile uninstall, don't rm if preceding cd fails. --- diff --git a/Makefile.in b/Makefile.in index 5ac6e8e6b..23c8b6a49 100644 --- a/Makefile.in +++ b/Makefile.in @@ -216,13 +216,13 @@ install: install-libs chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h uninstall: - cd $(DESTDIR)$(includedir); rm -f zlib.h zconf.h - cd $(DESTDIR)$(libdir); rm -f libz.a; \ + cd $(DESTDIR)$(includedir) && rm -f zlib.h zconf.h + cd $(DESTDIR)$(libdir) && rm -f libz.a; \ if test -n "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \ fi - cd $(DESTDIR)$(man3dir); rm -f zlib.3 - cd $(DESTDIR)$(pkgconfigdir); rm -f zlib.pc + cd $(DESTDIR)$(man3dir) && rm -f zlib.3 + cd $(DESTDIR)$(pkgconfigdir) && rm -f zlib.pc docs: zlib.3.pdf