From 7009adda3d6ded19cfcf4fb41b239c067e2805b0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 19 Dec 2010 02:39:32 +0100 Subject: build: enable parallel building $ make modules -j8 cd kernel; make -C /lib/modules/`uname -r`/build M=`pwd` V=0 \ IP_SET_MAX=256 \ NETLINK_DUMP_CONST=const \ NFNL_CB_CONST=const modules make[1]: Entering directory "/usr/src/linux-2.6.36-rc8-34-obj/x86_64/default" make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. The "fix" here is that we have to use ${MAKE} instead of make. (NB: The extra cd is redundant and can be appended to M=.) --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index aa0d64b..ab552dc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,16 +23,16 @@ endif SUBDIRS = lib src modules: - cd kernel; make -C $(KBUILD_OUTPUT) M=`pwd` V=$V \ + ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel V=$V \ IP_SET_MAX=$(IP_SET_MAX) \ NETLINK_DUMP_CONST=$(NETLINK_DUMP_CONST) \ NFNL_CB_CONST=$(NFNL_CB_CONST) modules modules_install: - cd kernel; make -C $(KBUILD_OUTPUT) M=`pwd` modules_install + ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel modules_install modules_clean: - cd kernel; make -C $(KBUILD_OUTPUT) M=`pwd` clean + ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel clean update_includes: ./update ip_set.h -- cgit v1.2.3