ソースを参照

finetune ulimit setting, fix problem on CygWin

Waldemar Brodkorb 15 年 前
コミット
44136f9389
1 ファイル変更4 行追加3 行削除
  1. 4 3
      Makefile

+ 4 - 3
Makefile

@@ -4,14 +4,15 @@
 CC?=		gcc
 GMAKE?=		$(PWD)/scripts/make
 GMAKE_FMK=	${GMAKE} -f $(PWD)/mk/build.mk
-GMAKE_INV=	ulimit -dS $$(ulimit -dH); ${GMAKE_FMK} --no-print-directory
+GMAKE_INV=	${GMAKE_FMK} --no-print-directory
+_UNLIMIT=	ulimit -dS $$(ulimit -dH);
 
 all: .prereq_done
-	@${GMAKE_INV} all
+	@${_UNLIMIT} ${GMAKE_INV} all
 
 v: .prereq_done
 	@(echo; echo "Build started on $$(LC_ALL=C LANGUAGE=C date)"; \
-	    set -x; ${GMAKE_FMK} VERBOSE=1 all) 2>&1 | tee -a make.log
+	    set -x; ${_UNLIMIT} ${GMAKE_FMK} VERBOSE=1 all) 2>&1 | tee -a make.log
 
 help:
 	@echo 'Common targets:'