Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have been working with Makefiles for over a decade, though never with C nor C++

I knew there was a lot of weirdness and baggage but I am frankly kind of horrified to learn about these "implicit rules" that seemingly automatically activate the C compiler due to the mere presence of a rule that ends in ".c" or ".o"



Implicit rules are our friends, in life as in make.


A serious makefile will disable all the default rules by defining the empty rule ...

.SUFFIXES:




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: