tj / mmake

Modern Make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore .PHONY line

adius opened this issue · comments

Many style guides suggest putting the .PHONY before the target.
This is also my preferred style.

# Remove all build artifacts and dependencies
.PHONY: clean
clean:
	-rm -r build

This, however, leads to a not very helpful help output

$ make help

  .PHONY                        Remove all build artifacts and dependencies

I think mmake should ignore the .PHONY line.

This was only fixed if .PHONY is before the comment, and not if it is after the comment like in my example 🙈.

I guess you should reopen it ...

ahahah :D