)]}'
{
  "commit": "31036e648f4a92ae0cce215eb3d60a1311a09c60",
  "tree": "eccb7f4a4f5ed7f495bb8d78b2dcbce8c6d78cc1",
  "parents": [
    "1ff728bff4285df8924cfcba024cea58c3350f77"
  ],
  "author": {
    "name": "Paul Smith",
    "email": "psmith@gnu.org",
    "time": "Mon Jan 08 23:14:57 2024 -0500"
  },
  "committer": {
    "name": "Paul Smith",
    "email": "psmith@gnu.org",
    "time": "Mon Jan 08 23:31:58 2024 -0500"
  },
  "message": "[SV 64571] Add --print-targets option\n\nAdd an option to print a list of targets defined in the makefiles.\nDon\u0027t print targets of implicit rules, or special targets.  To\nsupport this remember which files are deemed suffix rule targets.\n\nAdd a missing warning for single-suffix targets with prerequisites.\n\nSuggested by many.  Sample implementation by Tim \u003ctdhutt@gmail.com\u003e.\n\n* NEWS: Announce the new option and single-suffix warning.\n* doc/make.1: Add --print-targets to the man page.\n* doc/make.texi: Add --print-targets to the documentation.  Clean up\nthe text around the definition of suffix rules.\n* src/main.c (print_targets_flag): New variable for --print-targets.\n(switches): Add a new long option --print-targets.\n(main): If the option was provided call print_targets() and exit.\n* src/filedef.h (struct file): Add a \"suffix\" boolean value.  Remove\nprint_prereqs() since it\u0027s static.  Add new print_targets().\n* src/file.c (rehash_file): Merge the new suffix value.\n(print_prereqs): Used only locally: change to static.\n(print_target): Print targets which are not suffix rule targets and\nare not special targets.\n(print_targets): Call print_target() on each file.\n* src/rule.c (convert_to_pattern): Make maxsuffix local; it doesn\u0027t\nneed to be static.  Emit ignoring prerequisites for single-suffix\nrules as well as double-suffix rules.  Remember which files are\nactually suffix rules.\n* tests/scripts/features/suffixrules: Test single-suffix behavior.\n* tests/scripts/options/print-targets: Add tests for --print-targets.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "56358ec454d603a77e9824764c64ef7f3b34ada2",
      "old_mode": 33188,
      "old_path": "NEWS",
      "new_id": "7d296ac74db1998d8b35ebd64f05a17aa46f5e07",
      "new_mode": 33188,
      "new_path": "NEWS"
    },
    {
      "type": "modify",
      "old_id": "342807fe7d5f0a5402fb9f94184c97173a591bf3",
      "old_mode": 33188,
      "old_path": "doc/make.1",
      "new_id": "bb394bde9811df907a4e4cf94fa478a9c93a1ec3",
      "new_mode": 33188,
      "new_path": "doc/make.1"
    },
    {
      "type": "modify",
      "old_id": "90ecb74ee6770b226e6823968f0742a622795662",
      "old_mode": 33188,
      "old_path": "doc/make.texi",
      "new_id": "21bee9873565dac4dbd633d8cd1e0d6eb880fbf6",
      "new_mode": 33188,
      "new_path": "doc/make.texi"
    },
    {
      "type": "modify",
      "old_id": "6b20cb57617e2486889c82af0581aefb935c050c",
      "old_mode": 33188,
      "old_path": "src/file.c",
      "new_id": "77c328caa864502aff40680ad2411fafc88565ae",
      "new_mode": 33188,
      "new_path": "src/file.c"
    },
    {
      "type": "modify",
      "old_id": "019d420dc0f3902c4262d8fe7e712bce89a29246",
      "old_mode": 33188,
      "old_path": "src/filedef.h",
      "new_id": "b2ef1a167f515e64c60dcbe6f6275a1597e3e388",
      "new_mode": 33188,
      "new_path": "src/filedef.h"
    },
    {
      "type": "modify",
      "old_id": "c9c64b54bceb48a52958cc3251b88429c0b5cc75",
      "old_mode": 33188,
      "old_path": "src/main.c",
      "new_id": "d07f561a208b1e4ce32130373d579e0142f19327",
      "new_mode": 33188,
      "new_path": "src/main.c"
    },
    {
      "type": "modify",
      "old_id": "f04dd9bf91edef3c66a5a0f4b4c674e6e2444140",
      "old_mode": 33188,
      "old_path": "src/rule.c",
      "new_id": "8da27fcc28fd9e13193d828b06a2ccfcc303ebb7",
      "new_mode": 33188,
      "new_path": "src/rule.c"
    },
    {
      "type": "modify",
      "old_id": "5e969b2a52e7eb2ddcc7a2e714cccc5d69630987",
      "old_mode": 33188,
      "old_path": "tests/scripts/features/suffixrules",
      "new_id": "6c562efc3a98983211c23d0d8a16f814e9a4c151",
      "new_mode": 33188,
      "new_path": "tests/scripts/features/suffixrules"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d3f9e65ed422e31255c8a1d492ba7b01d980ffa1",
      "new_mode": 33188,
      "new_path": "tests/scripts/options/print-targets"
    }
  ]
}
