1{
2 "case": "t012",
3 "category": "targets/SECONDARY",
4 "compare_output": true,
5 "description": "Test the behaviour of the .SECONDARY target.",
6 "details": "\nTest the behavior of the .SECONDARY special target.\nCreate a makefile where a file would not normally be considered\nintermediate, then specify it as .SECONDARY. Build and note that it's\nnot automatically deleted. Delete the file. Rebuild to ensure that\nit's not created if it doesn't exist but doesn't need to be built.\nChange the original and ensure that the secondary file and the ultimate\ntarget are both rebuilt, and that the secondary file is not deleted.\n\nTry this with implicit rules and explicit rules: both should work.\n",
7 "env": {},
8 "expected_exit": 0,
9 "options": "-rR -j 2",
10 "options_mode": "shell",
11 "output_mode": "exact",
12 "setup": [
13 {
14 "content": "\n\n\n",
15 "kind": "file",
16 "mode": "0644",
17 "mtime": 1778707226,
18 "path": "test.0"
19 },
20 {
21 "content": "",
22 "kind": "file",
23 "mode": "0644",
24 "mtime": 1778707225,
25 "path": "test.1"
26 },
27 {
28 "content": "\n",
29 "kind": "file",
30 "mode": "0644",
31 "mtime": 1778707226,
32 "path": "test.3"
33 }
34 ],
35 "source_script": "targets/SECONDARY",
36 "stdin": "",
37 "suite": "gnu",
38 "timeout_seconds": 60
39}