about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-20 23:00:12 -0500
committerJune McEnroe <june@causal.agency>2019-02-20 23:00:12 -0500
commit474e3fa5bbf3ee6c1960e2b74e7afe69791a477a (patch)
treef1f882900597223e56a7b3079f7847aed9789a39
parentAdd README (diff)
downloadzlib-man-pages-master.tar.gz
zlib-man-pages-master.zip
Use test -n for MLINKS HEAD master
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f801474..8967842 100644
--- a/Makefile
+++ b/Makefile
@@ -78,12 +78,12 @@ lint:
 install:
 	install -d $(MANDIR)/man3
 	for man in $(MAN); do gzip -c $${man} > $(MANDIR)/man3/$${man}.gz; done
-	set -- $(MLINKS); while [ "$$*" ]; do \
+	set -- $(MLINKS); while [ -n "$$*" ]; do \
 		ln -f $(MANDIR)/man3/$$1.gz $(MANDIR)/man3/$$2.gz; shift 2; done
 
 uninstall:
 	for man in $(MAN); do rm -f $(MANDIR)/man3/$${man}.gz; done
-	set -- $(MLINKS); while [ "$$*" ]; do \
+	set -- $(MLINKS); while [ -n "$$*" ]; do \
 		rm -f $(MANDIR)/man3/$$2.gz; shift 2; done
 
 README: zlib-man-pages.7