From cb753845ae5d631403bb1be13865d1fe215ed9c2 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Wed, 7 Sep 2005 11:44:13 +0000 Subject: [PATCH] fix parallel build - gnu make specific syntax? --- code/unix/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/unix/Makefile b/code/unix/Makefile index d2d6ab1b..296253dc 100644 --- a/code/unix/Makefile +++ b/code/unix/Makefile @@ -361,16 +361,18 @@ default:build_release debug: build_debug release: build_release -build_debug: +build_debug: B=$(BD) +build_debug: makedirs $(MAKE) targets B=$(BD) CFLAGS="$(DEBUG_CFLAGS)" -build_release: +build_release: B=$(BR) +build_release: makedirs $(MAKE) targets B=$(BR) CFLAGS="$(RELEASE_CFLAGS)" #Build both debug and release builds all:build_debug build_release -targets:makedirs $(TARGETS) +targets: $(TARGETS) makedirs: @if [ ! -d $(B) ];then mkdir $(B);fi