File: changed_inputs.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 (44 lines) | stat: -rw-r--r-- 1,241 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
###	SPAR <http://www.cpan.org/scripts/>
###	14	644	1103821381	1103821396	Makeppfile
#
# This makefile tests the $(changed_inputs) variable and the
# ignore_action build check method.
#

$(phony all): abcdef abcdef_always

abcdef : a b c d e f : build_check ignore_action
	&echo $(changed_inputs) -o $(output)
			# This isn't a very useful command; we just want
			# the output to vary depending on the command.

abcdef_always : a b c d e f  # Same thing except without ignore_action.
	&echo $? -o $(output)
###	18	755	1103821634	1342132448	makepp_test_script.pl
#
# Test what happens if we have $(changed_inputs) in a command, and we
# only change a few of the inputs.
#
c_touch qw(a b c d e f); # Create the initial files.
makepp;
rename abcdef => 'abcdef_1';

#
# Now change 3 of the files:
#
c_echo $_, '-o', $_ for qw(a b c);
makepp;
rename abcdef => 'abcdef_2';

makepp;				# This one should not rebuild abcdef
				# though the command has changed.
				# However, it will build abcdef_always.
###	D	755	1103821506	1103821509	answers/
###	1	644	1103821477	1103821477	answers/abcdef
a b c d e f
###	L	H	0	0	answers/abcdef_1
answers/abcdef
###	L	H	0	0	answers/abcdef_2
answers/abcdef
###	1	644	1103821476	1103821477	answers/abcdef_always