File: 2006_09_14_preexec_rule.test

package info (click to toggle)
makepp 2.0.98.5-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,744 kB
  • sloc: perl: 15,893; makefile: 38; javascript: 25; sh: 1
file content (18 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
###	SPAR <http://www.cpan.org/scripts/>
###	11	644	1143581184	1122590436	Makeppfile
perl_begin
	$Mpp::preexecute_rule_hook = sub {
		-e 'y' and die;
		open(OUT, '>', 'y') or die;
		print OUT "OK\n";
		close(OUT);
	};
perl_end

x:
	&echo $(output) -o $(output)
###	D	755	1122590527	1122590522	answers
###	1	644	1122590442	1122590513	answers/x
x
###	1	644	1122590442	1122590513	answers/y
OK