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

I don't know if it's actually saner than just normal phonys but man I like it.

What does it get you other than the ability to print the list of all phonys?



It's mostly so I can immediately see which targets are phonies. Every phony has a line directly above it adding it to the list of phonies. When a makefile gets complex enough we need all the help we can get.

I use phony targets so much I wrote a shell script to parse the makefile database dump into some sort of help text. It doesn't depend on that variable at all.

https://github.com/matheusmoreira/.files/blob/master/~/.loca...

Prints output like:

  phony1
  phony2
          dependency1
          dependency2




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: