Skip to content

Commit

Permalink
Merge pull request mkottman#26 from doc4holliday/master
Browse files Browse the repository at this point in the history
Modify install behaviour
  • Loading branch information
mkottman committed Feb 10, 2012
2 parents 7e6d55b + f7efca4 commit b570c3b
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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.