pipeline 다음 룰은 순서대로

이걸 이용하면 병렬처리 룰도 간단해질지도?



release:

    $(MAKE) clean

    $(MAKE) test1


release: | clean test1

[링크 : http://stackoverflow.com/questions/8496135/parallel-makefile-require-depency-ordering]


Occasionally, however, you have a situation where you want to impose a specific ordering on the rules to be invoked without forcing the target to be updated if one of those rules is executed. In that case, you want to define order-only prerequisites. Order-only prerequisites can be specified by placing a pipe symbol (|) in the prerequisites list: any prerequisites to the left of the pipe symbol are normal; any prerequisites to the right are order-only:


targets : normal-prerequisites | order-only-prerequisites

[링크 : https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html]


'프로그램 사용 > make, configure' 카테고리의 다른 글

make order  (0) 2016.06.16
make /bin/sh: 1: pushd: not found 에러  (0) 2016.06.08
make 기본셸  (0) 2016.06.08
makefile := = 차이점  (0) 2016.06.04
make 의존성 파일?  (0) 2015.12.18
make 암시적 룰  (0) 2015.12.18
Posted by 구차니

댓글을 달아 주세요