-
Notifications
You must be signed in to change notification settings - Fork 46
/
Makefile
28 lines (27 loc) · 850 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DESTDIR ?= /
DESTDIR_TMP := $(shell readlink -f $(DESTDIR))
SHELL = bash
all:
$(MAKE) -C ipt
$(MAKE) -C src
debug:
$(MAKE) -C ipt
$(MAKE) -C src debug
install:
$(MAKE) -C ipt DESTDIR=$(DESTDIR_TMP) install
$(MAKE) -C src DESTDIR=$(DESTDIR_TMP) install
clean:
$(MAKE) -C src clean
$(MAKE) -C ipt clean
dkms-install:
. ./dkms.conf; \
mkdir /usr/src/$${PACKAGE_NAME}-$${PACKAGE_VERSION}; \
cp -r * /usr/src/$${PACKAGE_NAME}-$${PACKAGE_VERSION}; \
dkms add -m $${PACKAGE_NAME} -v $${PACKAGE_VERSION}; \
dkms build -m $${PACKAGE_NAME} -v $${PACKAGE_VERSION}; \
dkms install -m $${PACKAGE_NAME} -v $${PACKAGE_VERSION}
dkms-uninstall:
. ./dkms.conf; \
dkms uninstall -m $${PACKAGE_NAME} -v $${PACKAGE_VERSION}; \
dkms remove -m $${PACKAGE_NAME} -v $${PACKAGE_VERSION} --all; \
rm -rf /usr/src/$${PACKAGE_NAME}-$${PACKAGE_VERSION}