Open rurban opened 2 years ago
This not only happens on autotools Makefiles, but as far as I can see on any file that does not have .test
under .PHONY
For example this Makefile also generates the warning:
.PHONY: all
all:
printf "Hello\n"
The error goes away if you add the targets to PHONY, even if they do not exist:
.PHONY: all test clean
all:
printf "Hello\n"
dup of #15 I think (bugs #86 and #87 are also related, as is PR #88)
Expected behaviour
Instead of warning a missing .PHONY test, check if a check target exists instead.
Actual behaviour
With GNU Makefiles it warns about a missing make test target. minphony Missing required phony target 1222
"test"
Output of
checkmake --version
checkmake 0.2.1 built at 2022-08-15T10:00:27Z by Reinhard Urban reinhard.urban@nubix.de with go version go1.18.1 linux/amd64
Output of
checkmake --debug <your makefile>
Output of
make --version
GNU Make 4.3
Sample Makefile to reproduce issue
Any autotools generated GNU Makefile
(some of these things might not apply but the more you can provide the easier it will be to fix this bug. Thanks!)