From: Mike Frysinger Date: Sat, 19 Nov 2011 21:02:03 +0000 (-0500) Subject: Makefile: separate man page install and compression steps X-Git-Tag: v1.4.9~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4ff3ab5a610fc150ec50bf16b1fb0b0c00e281a2;p=mtd-utils.git 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 --- 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)