Bug#638411: debian-rules-missing-*-target fooled by variables
Damyan Ivanov <dmn@debian.org> writes:
> I get "certain" error/warnings about missing required/optional targets
> in the following debian/rules:
> -------------------------------------------------
> DEBIAN_TARGETS := clean binary binary-arch binary-indep build build-arch build-indep
> .PHONY: $(DEBIAN_TARGETS)
> $(DEBIAN_TARGETS):
> dh $@ --parallel
> -------------------------------------------------
> I find it handy to use a variable here, so that I can heep the phony
> target list the same as the universal rule at the bottom. And these
> targets need to be phony in order to not interfere with existing
> files/directories.
We probably are going to have to treat targets that are make variables as
equivalent to % and assume the maintainer knows what they're doing.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: