diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2011-12-08 14:28:20 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2011-12-08 14:29:38 +0100 |
commit | 00acb9d73ee5eab5f2f1e99d6185b3e4a676f366 (patch) | |
tree | 3c0af7ff00b4e54f2885fc1a4f9b4ab3ffb520ce | |
parent | 9db9be8cfca1930b5d23fb10875793dc29e32a84 (diff) | |
download | zlib-00acb9d73ee5eab5f2f1e99d6185b3e4a676f366.tar.gz |
Fix a Makefile.in issue with invalid cp command on non-shared builds.
-rw-r--r-- | Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 414230e..a7fa22e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -169,8 +169,8 @@ install-libs: $(LIBS) -@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi -@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi - cp $(STATICLIB) $(DESTDIR)$(libdir) - cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir) + test -z "$(STATICLIB)" || cp $(STATICLIB) $(DESTDIR)$(libdir) + test -z "$(SHAREDLIBV)" || cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir) cd $(DESTDIR)$(libdir); chmod u=rw,go=r $(STATICLIB) -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 -@cd $(DESTDIR)$(sharedlibdir); if test "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \ |