In Makefile uninstall, don't rm if preceding cd fails.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 24 Mar 2013 23:57:32 +0000 (16:57 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 24 Mar 2013 23:57:32 +0000 (16:57 -0700)
Makefile.in

index 5ac6e8e6ba1f1fea62ce179e398314ad2556dfe1..23c8b6a4909594c7ca1cb9b75156d5968868017c 100644 (file)
@@ -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