1 # $NetBSD: suff-lookup.mk,v 1.2 2020/10/24 03:18:22 rillig Exp $
3 # Demonstrate name resolution for suffixes.
12 .SUFFIXES: .c .cc .ccc
14 # Register '.short' before '.sho'. When searching for the transformation
15 # '.sho.c', the suffix '.short' must not be found even though it starts with
16 # the correct characters.
17 .SUFFIXES: .short .sho .dead-end
19 # From long to short suffix.
21 : 'Making ${.TARGET} from ${.IMPSRC}.'
23 # From short to long suffix.
25 : 'Making ${.TARGET} from ${.IMPSRC}.'
28 : 'Making ${.TARGET} from ${.IMPSRC}.'
30 : 'Making ${.TARGET} from ${.IMPSRC}.'
32 : 'Making ${.TARGET} from ${.IMPSRC}.'
35 : 'Making ${.TARGET} out of nothing.'
37 # Deleting all suffixes and adding them again rebuilds all of the above
38 # transformation rules.
40 .SUFFIXES: .c .cc .ccc .short .sho .dead-end