From: Frank Mori Hess Date: Sun, 30 Sep 2007 14:42:11 +0000 (+0000) Subject: Support DESTDIR for module install/uninstall. X-Git-Tag: r0_7_75~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7075345854ad61345133b362122a8e37722536c5;p=comedi.git Support DESTDIR for module install/uninstall. --- 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: