Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add: make install

  • Loading branch information...
commit 26295f86eb6d207231042beccea47f29e10cd8f9 1 parent a58d689
Phil "RzR" Coval rzr authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 Makefile
11 Makefile
View
@@ -1,8 +1,14 @@
+#! /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
@@ -13,3 +19,8 @@ clean:
load:
-/sbin/rmmod acpi_call
/sbin/insmod acpi_call.ko
+
+install: ${package}.ko
+ install -d ${INSTALLDIR}
+ install $< ${INSTALLDIR}
+
Please sign in to comment.
Something went wrong with that request. Please try again.