github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/kati/testcase/pattern_rules_priority.mk (about)

     1  # Preparation: create foo.c bar.c baz.cc
     2  test1:
     3  	touch foo.c bar.c baz.cc
     4  
     5  test2: foo.o bar.o baz.o
     6  
     7  # The right choice for foo.o
     8  foo.o: %.o: %.c
     9  	echo PASS_foo
    10  
    11  # The right choice for bar.o
    12  %.o: %.c
    13  	echo PASS_bar
    14  
    15  # This rule should be dominated by other rules
    16  .c.o:
    17  	echo FAIL
    18  
    19  # The right choice for baz.o
    20  .cc.o:
    21  	echo PASS_baz