From cbcd0f7103423f617cfd75317d204c2103692412 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 13 Mar 2001 09:34:04 +0000 Subject: [PATCH] make install now installs man pages to the wrong place, as per user request --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 64b31ef..5777a44 100644 --- a/Makefile +++ b/Makefile @@ -16,8 +16,13 @@ DOCFILES= README INSTALL `find doc -type f` INSTALLDIR=$(DESTDIR)/usr INSTALLDIR_LIB=$(DESTDIR)/usr/lib +ifeq ($(DEBIAN),) INSTALLDIR_DOC=$(DESTDIR)/usr/share/doc/libcomedi INSTALLDIR_MAN=$(DESTDIR)/usr/share/man +else +INSTALLDIR_DOC=$(DESTDIR)/usr/doc/libcomedi +INSTALLDIR_MAN=$(DESTDIR)/usr/man +endif INSTALLDIR_BIN=$(DESTDIR)/usr/bin INSTALLDIR_SBIN=$(DESTDIR)/usr/sbin @@ -34,8 +39,10 @@ install: dummy (cd $(INSTALLDIR_LIB);ln -sf libcomedi.so.${version} libcomedi.so) install -m 644 lib/libcomedi.a ${INSTALLDIR_LIB} #/sbin/ldconfig -n ${INSTALLDIR}/lib +ifneq ($(INSTALLDIR),) install -d ${INSTALLDIR_DOC} install ${DOCFILES} ${INSTALLDIR_DOC} +endif install man/*.7 ${INSTALLDIR_MAN}/man7 install man/*.8 ${INSTALLDIR_MAN}/man8 install -s -m 755 comedi_config/comedi_config ${INSTALLDIR_SBIN} -- 2.26.2