prometheus-kafka-adapter icon indicating copy to clipboard operation
prometheus-kafka-adapter copied to clipboard

Add .PHONY declaration to Makefile

Open mgrl39 opened this issue 6 months ago • 0 comments

Add .PHONY to Makefile targets

Changes:

  • Explicitly declares all, fmt, test, build, and other non-file targets as .PHONY in the Makefile.

Why?

  • Ensures these targets always execute (even if a file/directory with the same name exists, e.g., ./clean).
  • Follows GNU Make conventions (Phony Targets docs).
  • Improves reliability and avoids potential edge cases in builds.

Impact:

  • No functional changes—just better Makefile hygiene.

mgrl39 avatar Apr 05 '25 17:04 mgrl39