Makefile 명령어 동시 수행

1 개요[ | ]

Makefile run targets in parallel
Makefile 명령어 동시 수행
MAKEFLAGS += -j2

counterA:
	for i in {1..5}; do echo A $$i; sleep 1; done

counterB:
	for i in {1..2}; do echo B $$i; sleep 1; done

counters: counterA counterB
$ make counters
for i in {1..5}; do echo A $i; sleep 1; done
for i in {1..2}; do echo B $i; sleep 1; done
A 1
B 1
B 2
A 2
A 3
A 4
A 5

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}