1###	SPAR <http://www.cpan.org/scripts/>
2###	4	755	1308567017	1308567017	makepp_test_script.pl
3makepp qw(default dir/all);
4n_files 'n_files_0';
5makepp '--rm_stale';	# Make sure that the wildcard doesn't match the last_chance targets
61;
7###	16	644	1308566871	965331711	Makeppfile
8$(phony default): file1 x
9
10f%ile2x: f%ile2
11	&cp $< $@
12
13f%ile3x: f%ile3
14	&cp $< $@
15
16file% other%: :last_chance
17	&echo $X $@ -o $@
18	&echo other$@ -o $(word 2, $(outputs))
19
20$(phony x): file1 file2 other3
21
22X := $(first_available file2)	# Instance the rule for file2
23X := $(wildcard file*)		# file1 and file3 aren't instanced yet
24###	D	755	1308566871	1308564810	dir/
25###	12	644	1308566871	1308564770	dir/Makeppfile
26# These rules must not match a, which is a normal file
27
28$(phony all): a b/ c/
29
30%/: :last-chance
31	&mkdir $(output)
32	&touch $(output).last-chance
33
34# TODO: file_info marks every matching output as a directory, so later "%: %.yes" never matches
35%/: %.yes
36	&mkdir $(output)
37	&touch $(output).normal
38###	0	644	1308566871	1308564299	dir/a
39###	0	644	1308566871	1308564717	dir/b.yes
40###	D	755	1308567039	1308567040	answers/
41###	1	644	1308566871	965332255	answers/file1
42file2 file2x file1
43###	1	644	1308566871	965332253	answers/file2
44file2 file2x file2
45###	1	644	1308566871	965332260	answers/file3
46file2 file2x file3
47###	1	644	1308567026	1308567026	answers/n_files
480 2 0
49###	1	644	1308567039	1308567039	answers/n_files_0
508 3 0
51###	1	644	1308566871	965332255	answers/other1
52otherfile1
53###	1	644	1308566871	965332253	answers/other2
54otherfile2
55###	1	644	1308566871	965332260	answers/other3
56otherfile3
57###	D	755	1308566871	1308564725	answers/dir/
58###	0	644	1308566871	1308564808	answers/dir/b.normal
59###	0	644	1308566871	1308564819	answers/dir/c.last-chance
60