1 # $NetBSD: dir.mk,v 1.4 2020/07/31 20:16:21 rillig Exp $
5 # Dependency lines may use braces for expansion.
15 # The braces may start in the middle of a word.
25 # But nested braces don't work.
26 all: {{thi,fou}r,fif}teen
35 # There may be multiple brace groups side by side.
36 all: {pre-,}{patch,configure}
38 pre-patch patch pre-configure configure:
41 # Empty pieces are allowed in the braces.
42 all: {fetch,extract}{,-post}
44 fetch fetch-post extract extract-post:
47 # The expansions may have duplicates.
48 # These are merged together because of the dependency line.
49 all: dup-{1,1,1,1,1,1,1}
54 # Other than in Bash, the braces are also expanded if there is no comma.
55 all: {{{{{{{{{{single-word}}}}}}}}}}