X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=7df2c246fb4eca00f08ca6bc7ada78181519cfb4;hb=6496018d4dab768a94072aa3d48575ce145cdef3;hp=2065adc5975758f4e2912aec09b09e5e93386050;hpb=5eb3eea12012710be866548589aced85eed0c1c5;p=transforward.git diff --git a/Makefile b/Makefile index 2065adc..7df2c24 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,9 @@ 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).$(ARCH) @@ -13,3 +15,8 @@ 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 + mkdir -p /etc/modules-load.d + install -m 644 transforward.conf /etc/modules-load.d/transforward.conf