From 504f577240a31f0fe2c50f5a11ebcb06a1e45fcc Mon Sep 17 00:00:00 2001 From: Heinz Mauelshagen Date: Fri, 16 Dec 2011 12:17:31 +0100 Subject: [PATCH] Move manunal pages install into Makefile.in --- Makefile.in | 8 ++++---- thin-provisioning-tools.spec | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile.in b/Makefile.in index ac15f3e..5dfcb42 100644 --- a/Makefile.in +++ b/Makefile.in @@ -39,7 +39,6 @@ CXXFLAGS+=@CXXOPTIMISE_FLAG@ CXXFLAGS+=@CXXDEBUG_FLAG@ LIBS=-lstdc++ INSTALL=@INSTALL@ -INSTALL_PROGRAM=$(INSTALL) -m 755 DESTDIR=@prefix@ BINDIR=$(DESTDIR)/sbin @@ -92,9 +91,10 @@ clean: .PHONEY: install install: $(PROGRAMS) - $(INSTALL_PROGRAM) -D thin_repair $(BINDIR)/thin_repair - $(INSTALL_PROGRAM) -D thin_dump $(BINDIR)/thin_dump - $(INSTALL_PROGRAM) -D thin_restore $(BINDIR)/thin_restore + $(INSTALL) -m 755 -D thin_repair $(BINDIR)/thin_repair + $(INSTALL) -m 755 -D thin_dump $(BINDIR)/thin_dump + $(INSTALL) -m 755 -D thin_restore $(BINDIR)/thin_restore + $(INSTALL) -m 644 man8/* $(MANDIR)/man8 -include $(subst .cc,.d,$(SOURCE)) -include $(subst .cc,.d,$(TEST_SOURCE)) diff --git a/thin-provisioning-tools.spec b/thin-provisioning-tools.spec index 4e4e881..eef41d3 100644 --- a/thin-provisioning-tools.spec +++ b/thin-provisioning-tools.spec @@ -25,8 +25,6 @@ manage device-mapper thin provisioning target metadata devices. %install make DESTDIR=%{buildroot} install -mkdir -p %{buildroot}%{_mandir}/man8/ -install -c -m644 man8/* %{buildroot}%{_mandir}/man8/ %clean