Skip to content

Instantly share code, notes, and snippets.

View fpmake.c
#!/usr/bin/tcc -run
* ^^ If you don't know tcc, you should.
* This program is a wrapper around make(1), it parses recursive make
* output and try to generate valid pathnames for errors generated by
* the compiler for relative pathnames.
* It keep tracks (well it tries to) of parallel make jobs and try to
* look in the directory for all the running jobs for a matching
* pathnames, then doctor the error message with the 'real' pathname.