2 ms·
> Seems handy if you just want to fiddle around with a .c and .h file pair without writing a makefile, though! Doesn't make already do this, with built-in targ
by e12e 5y ago
> Seems handy if you just want to fiddle around with a .c and .h file pair without writing a makefile, though!
Doesn't make already do this, with built-in targets?
Eg, with hello.c, hello.h, no Makefile:
make hello
(not sure about header files though, I know it works for simple c files at least).
- jcelerier 5y agothere's a whole lot of default rules in GNU make: https://www.gnu.org/software/make/manual/html_node/Implicit-Rules.html https://www.gnu.org/software/make/manual/html_node/Implicit-... but not sure they are portable