[02/14] batmand: Don't automatically build in parallel

Message ID 1305983442-1607-2-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Headers

Commit Message

Sven Eckelmann May 21, 2011, 1:10 p.m. UTC
  Distributions like Gentoo and Debian have policies which make it
necessary to use some kind of environmental variable to control the
parallel build.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
This patch depends on other patches submitted earlier:
 - batmand: Fix FTBFS on second build attempt
 - batmand: Remove obsolete creation of source packages
 - batmand: Remove subversion/svk revision information
 - batmand: Use nproc to get number of available processors

 Makefile |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
  

Patch

diff --git a/Makefile b/Makefile
index 49342ac..f8864d0 100644
--- a/Makefile
+++ b/Makefile
@@ -77,11 +77,8 @@  REVISION= $(shell      if [ -d .git ]; then \
                         fi)
 REVISION_VERSION =\"\ $(REVISION)\"
 
-NUM_CPUS = $(shell nproc 2> /dev/null || echo 1)
 
-
-all:
-	$(MAKE) -j $(NUM_CPUS) $(BINARY_NAME)
+all: $(BINARY_NAME)
 
 $(BINARY_NAME): $(SRC_O) $(SRC_H) Makefile
 	$(Q_LD)$(CC) -o $@ $(SRC_O) $(LDFLAGS)