Skip to content

Commit

Permalink
Makefile: Allow "make modules_install" to work from top-level directory.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
blp committed Nov 1, 2012
1 parent 8534073 commit 3a14d23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a14d23

Please sign in to comment.