Permalink
Browse files

Merge pull request #26 from doc4holliday/master

Modify install behaviour
  • Loading branch information...
2 parents 7e6d55b + f7efca4 commit b570c3b6c7016174107558464e864391d8bbd176 @mkottman committed Feb 10, 2012
Showing with 3 additions and 11 deletions.
  1. +3 −11 Makefile
View
@@ -1,26 +1,18 @@
-#! /usr/bin/make -f
-
-package=acpi_call
-
obj-m := acpi_call.o
KVERSION := $(shell uname -r)
KDIR := /lib/modules/$(KVERSION)/build
PWD := $(shell pwd)
-INSTALLDIR?=${DESTDIR}/lib/modules/${KVERSION}/kernel/extra/
-
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
+install:
+ $(MAKE) -C $(KDIR) M=$(PWD) modules_install
+
load:
-/sbin/rmmod acpi_call
/sbin/insmod acpi_call.ko
-
-install: ${package}.ko
- install -d ${INSTALLDIR}
- install $< ${INSTALLDIR}
-

0 comments on commit b570c3b

Please sign in to comment.