Re: Ability to print the make database as json - experimental

Tim Murphy <[email protected]> Fri, 24 Oct 2025 19:16:01 +0100
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <CACJSg6=69ihTzRxR0sGrmtjhuNFis2m8dQyNqaYyD6ai02cu+w@mail.gmail.com>
https://github.com/tnmurphy/gmake-experimental/tree/feature/jprint

On Fri, 24 Oct 2025 at 12:30, Tim Murphy <[email protected]> wrote:

>
> What's still not done:
> Directories are not dumped in json - this is a bit of a pain but I will
> get to it when I'm desperate and there's absolutely nothing easy or fun
> left to do :-).
>
> OK, Directories now get dumped as json like so:
   "directories": {
      "RCS": {
        "status": "stat_fail"
      },
      "src": {
        "status": "ok",
        "device": 2100,
        "inode": 32708350,
        "files": 109,
        "impossibilities": 3
      },
      "": {
        "files": 299,
        "impossibilities": 87,
        "directories": 7
      }
    },

The last one is fake. I don't like this much but it contains the stats
about how many files and directories were found and is incorrect here
becuase I've shortened the example.

So the vpath info is next and then the string cache stats. After that I'm
not sure there's anything left. It will then be time to write some
utilities that can use all this stuff.

Best regards,

Tim Murphy