Self Makefile and C source

I’ve seen this trick long time ago, one file that’s a C source and also usable as it’s own Makefile , also known as polyglot code . While the polyglot has probably little use in practice, the combination with build system can be handy, to distribute a single file. Build instructions can be of course in a comment in the file. Let’s see a minimal example: Source: #include <stdio.h> int main () {…