From 4ff3ab5a610fc150ec50bf16b1fb0b0c00e281a2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 19 Nov 2011 16:02:03 -0500 Subject: Makefile: separate man page install and compression steps If the system doesn't have gzip installed, we should still be able to install the man pages. So install the file in one step, and then compress it in another (and ignore failures from that). Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4b71b8f..f4f97e5 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,8 @@ install:: $(addprefix $(BUILDDIR)/,${BINS}) ${SCRIPTS} mkdir -p ${DESTDIR}/${SBINDIR} install -m 0755 $^ ${DESTDIR}/${SBINDIR}/ mkdir -p ${DESTDIR}/${MANDIR}/man1 - gzip -9c mkfs.jffs2.1 > ${DESTDIR}/${MANDIR}/man1/mkfs.jffs2.1.gz + install -m 0644 mkfs.jffs2.1 ${DESTDIR}/${MANDIR}/man1/ + -gzip -9f ${DESTDIR}/${MANDIR}/man1/*.1 tests:: $(MAKE) -C $(TESTS) -- cgit v1.2.3