summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
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
commit5887bd0f7123b619dd12131a9566b1d94417bac9 (patch)
tree1484772b78de1fc3aafdcfd46505e0530997eb0e /src/Makefile
parenteb433d8bfd4c329f4a0dd192eee1946f13ed91c8 (diff)
Makefile: don't duplicate code in install and modules-install
Signed-off-by: Luis Ressel <aranea@aixah.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/Makefile')
-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