From 3a14d239d785a251dc3a1070bf16445c51616833 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 1 Nov 2012 13:54:20 -0700 Subject: [PATCH] Makefile: Allow "make modules_install" to work from top-level directory. INSTALL recommends running "make modules_install" but it didn't mention that this has to be done from datapath/linux. This commit makes this work from the top-level build directory. (Another solution would be to update INSTALL, but this approach seems a little easier for the user.) Signed-off-by: Ben Pfaff --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.am b/Makefile.am index dafba2b5..b71ca1fa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -211,6 +211,11 @@ install-data-local: $(INSTALL_DATA_LOCAL) uninstall-local: $(UNINSTALL_LOCAL) .PHONY: $(DIST_HOOKS) $(CLEAN_LOCAL) $(INSTALL_DATA_LOCAL) $(UNINSTALL_LOCAL) +modules_install: +if LINUX_ENABLED + cd datapath/linux && $(MAKE) modules_install +endif + include lib/automake.mk include ofproto/automake.mk include utilities/automake.mk -- 2.30.2