Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Please merge this small make install fix #23

Merged
merged 1 commit into from

3 participants

@rzr
rzr commented

Please merge this small make install fix

Would you also like to merge a custom script to control fan through ACPI

http://rzr.online.fr/q/lenovo

@avilella
Collaborator
@mkottman mkottman merged commit 7e6d55b into mkottman:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 6, 2012
  1. @rzr

    Add: make install

    rzr authored
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +11 −0 Makefile
View
11 Makefile
@@ -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}
+
Something went wrong with that request. Please try again.