From: Ben Pfaff Date: Thu, 1 Nov 2012 20:54:20 +0000 (-0700) Subject: Makefile: Allow "make modules_install" to work from top-level directory. X-Git-Tag: sliver-openvswitch-1.9.90-3~10^2~258 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=3a14d239d785a251dc3a1070bf16445c51616833 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 --- diff --git a/Makefile.am b/Makefile.am index dafba2b52..b71ca1fab 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