Hacker News new | ask | show | jobs
by 153957 641 days ago
It is also possible to define `.PHONY` multiple times, so you can simplify this to:

  .PHONY: something
  something:
      ./do-something

  .PHONY: something-else
  something-else: something
      ./do-something-else

  create-file:
      ./generate-some-output > $@
1 comments

Good tip! Never realized this could be done.