--- a/linux/pcie/Makefile
+++ b/linux/pcie/Makefile
@@ -111,27 +111,19 @@ ifneq ($(wildcard $(MODULES)),)
 	$(Q)$(DEPMOD) -a
 endif
 
-install_dkms: uninstall
-ifneq ($(shell id -u),0)
-	@echo "make install_dkms should run as root"
-	exit 1
-endif 
-ifeq ($(strip $(shell which dkms)),)
-	@echo "make install_dkms requires dkms to be installed"
-	exit 1
-endif 
+install_dkms:
 # build DKMS
-	$(Q)mkdir -p /usr/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux
-	$(Q)cp -r . /usr/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux/pcie
-	$(Q)cp -r $(COMMON_SRC_DIRECTORY) /usr/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/
-	$(Q)cp -r $(VDMA_SRC_DIRECTORY) /usr/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux
-	$(Q)cp -r $(UTILS_SRC_DIRECTORY) /usr/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux
-	$(Q)sed 's/@PCIE_DRIVER_VERSION@/$(DRIVER_VERSION)/g' dkms.conf.in > /usr/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/dkms.conf
-	$(Q)dkms add -m $(DRIVER_NAME_NO_EXT) -v $(DRIVER_VERSION)
-	$(Q)dkms build -m $(DRIVER_NAME_NO_EXT) -v $(DRIVER_VERSION) || (cat /var/lib/dkms/$(DRIVER_NAME_NO_EXT)/$(DRIVER_VERSION)/build/make.log; exit 1)
+	$(Q)mkdir -p $(DESTDIR)/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux
+	$(Q)cp -r . $(DESTDIR)/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux/pcie
+	$(Q)cp -r $(COMMON_SRC_DIRECTORY) $(DESTDIR)/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/
+	$(Q)cp -r $(VDMA_SRC_DIRECTORY) $(DESTDIR)/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux
+	$(Q)cp -r $(UTILS_SRC_DIRECTORY) $(DESTDIR)/src/$(DRIVER_NAME_NO_EXT)-$(DRIVER_VERSION)/linux
+	$(Q)sed 's/@PCIE_DRIVER_VERSION@/$(DRIVER_VERSION)/g' dkms.conf.in > dkms.conf
+	#$(Q)dkms add -m $(DRIVER_NAME_NO_EXT) -v $(DRIVER_VERSION)
+	#$(Q)dkms build -m $(DRIVER_NAME_NO_EXT) -v $(DRIVER_VERSION) || (cat /var/lib/dkms/$(DRIVER_NAME_NO_EXT)/$(DRIVER_VERSION)/build/make.log; exit 1)
 
 # install DKMS
-	$(Q)dkms install -m $(DRIVER_NAME_NO_EXT) -v $(DRIVER_VERSION) --force
+	#$(Q)dkms install -m $(DRIVER_NAME_NO_EXT) -v $(DRIVER_VERSION) --force
 
 uninstall_all_dkms: 
 ifneq ($(shell id -u),0)
