aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2019-02-17 05:16:33 +0100
committerLuis Ressel <aranea@aixah.de>2019-02-17 05:42:17 +0100
commit783308b49a18c35cf376a98d7f24f6a0e2f84d9c (patch)
tree0cbd90d750e0e6c7cae39e5e7ceb7cac73181cec
parentcompat: backport ALIGN_DOWN (diff)
downloadwireguard-monolithic-historical-783308b49a18c35cf376a98d7f24f6a0e2f84d9c.tar.xz
wireguard-monolithic-historical-783308b49a18c35cf376a98d7f24f6a0e2f84d9c.zip
Makefile: don't duplicate code in install and modules-install
Signed-off-by: Luis Ressel <aranea@aixah.de>
-rw-r--r--src/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile
index c254926..fca28a5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -46,10 +46,7 @@ module-install:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
depmod -a
-install:
- @$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
- depmod -a
- @$(MAKE) -C tools install
+install: module-install tools-install
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
DKMS_SOURCES := version.h Makefile Kbuild Kconfig dkms.conf $(filter-out version.h wireguard.mod.c tools/% tests/%,$(call rwildcard,,*.c *.h *.S *.pl *.include))
@@ -62,6 +59,9 @@ tools:
tools-debug:
@$(MAKE) -C tools V=1 DEBUG_TOOLS=y
+tools-install:
+ @$(MAKE) -C tools install
+
style:
$(KERNELDIR)/scripts/checkpatch.pl -f --max-line-length=4000 --codespell --color=always $(filter-out wireguard.mod.c,$(wildcard *.c)) $(wildcard *.h) $(wildcard selftest/*.c)
@@ -76,4 +76,4 @@ cloc:
-include tests/debug.mk
-.PHONY: all module module-debug module-install tools install dkms-install clean core-cloc check style version.h dkms.conf
+.PHONY: all module module-debug module-install tools tools-install install dkms-install clean core-cloc check style version.h dkms.conf