fix parallel build - gnu make specific syntax?

This commit is contained in:
Ludwig Nussel 2005-09-07 11:44:13 +00:00
parent 7b6c3a3f7c
commit cb753845ae

View file

@ -361,16 +361,18 @@ default:build_release
debug: build_debug debug: build_debug
release: build_release release: build_release
build_debug: build_debug: B=$(BD)
build_debug: makedirs
$(MAKE) targets B=$(BD) CFLAGS="$(DEBUG_CFLAGS)" $(MAKE) targets B=$(BD) CFLAGS="$(DEBUG_CFLAGS)"
build_release: build_release: B=$(BR)
build_release: makedirs
$(MAKE) targets B=$(BR) CFLAGS="$(RELEASE_CFLAGS)" $(MAKE) targets B=$(BR) CFLAGS="$(RELEASE_CFLAGS)"
#Build both debug and release builds #Build both debug and release builds
all:build_debug build_release all:build_debug build_release
targets:makedirs $(TARGETS) targets: $(TARGETS)
makedirs: makedirs:
@if [ ! -d $(B) ];then mkdir $(B);fi @if [ ! -d $(B) ];then mkdir $(B);fi