From 7075345854ad61345133b362122a8e37722536c5 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 30 Sep 2007 14:42:11 +0000 Subject: [PATCH] Support DESTDIR for module install/uninstall. --- comedi/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/Makefile.am b/comedi/Makefile.am index 602fe673..0ba5bc21 100644 --- a/comedi/Makefile.am +++ b/comedi/Makefile.am @@ -26,12 +26,12 @@ all-local: install-data-local: $(MAKE) -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@ CC="$(LINUX_CC) -I@abs_top_builddir@/ \ -I@abs_top_srcdir@/include $(RTAI_CFLAGS) $(RTLINUX_CFLAGS)" INSTALL_MOD_DIR=$(COMEDI_MOD_DIR) \ - INSTALL_MOD_PATH="$(prefix)" modules_install + INSTALL_MOD_PATH="$(DESTDIR)$(prefix)" modules_install clean-local: $(MAKE) -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@ CC="$(LINUX_CC) -I@abs_top_builddir@/ \ -I@abs_top_srcdir@/include $(RTAI_CFLAGS) $(RTLINUX_CFLAGS)" clean uninstall-local: - find $(prefix)/$(LINUX_MODLIB)/$(COMEDI_MOD_DIR) -name '*.ko' -exec $(RM) {} \; + find $(DESTDIR)$(prefix)/$(LINUX_MODLIB)/$(COMEDI_MOD_DIR) -name '*.ko' -exec $(RM) {} \; else module_PROGRAMS = comedi.ko all-local: -- 2.26.2