aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-19 16:02:03 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>2011-11-22 23:31:24 +0200
commit4ff3ab5a610fc150ec50bf16b1fb0b0c00e281a2 (patch)
tree8c57586f8f7abc3eef4e4103460a08c8b37b2e91
parent952f4b15bd0bbcd2d7ef1a60e316fab309dcce5a (diff)
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 <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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)