Attempt to work around kernel bug
[transforward.git] / Makefile
index 78b34dd..d20a598 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,12 @@ obj-m += transforward.o
 
 KVER=$(shell uname -r)
 ARCH=$(shell uname -m)
-DIST=fc18 # Is there an easy way of fetching this automatically, short of mapping /etc/redhat-release
+
+# Is there an easy way of fetching this automatically, short of mapping /etc/redhat-release
+DIST=fc18
 
 ifeq ($(wildcard /lib/modules/$(KVER)/build),) 
-       KVER=3.10.6-100.$(DIST).$(KVER)
+       KVER=3.10.6-100.$(DIST).$(ARCH)
 endif
 
 all:
@@ -13,3 +15,7 @@ all:
 
 clean:
        make -C /lib/modules/$(KVER)/build M=$(PWD) clean
+
+install:
+       install -D -m 755 transforward.ko /lib/modules/$(KVER)/net/transforward/transforward.ko
+       install -m 644 transforward.service /usr/lib/systemd/system/transforward.service