]> www.infradead.org Git - mtd-utils.git/commitdiff
Makefile: separate man page install and compression steps
authorMike Frysinger <vapier@gentoo.org>
Sat, 19 Nov 2011 21:02:03 +0000 (16:02 -0500)
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>
Tue, 22 Nov 2011 21:31:24 +0000 (23:31 +0200)
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 <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>
Makefile

index 4b71b8f98dbd3b1fbd01766f120f59942319bf80..f4f97e55438c2004f2e8c0dcb2aefb609b20c1d4 100644 (file)
--- 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)