Move manunal pages install into Makefile.in

This commit is contained in:
Heinz Mauelshagen 2011-12-16 12:17:31 +01:00
parent 304f2e8406
commit 504f577240
2 changed files with 4 additions and 6 deletions

View File

@ -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))

View File

@ -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