In a Qt project, I need to provide a custom make dist. So I added the following lines to the *.pro file:
QMAKE_EXTRA_TARGETS += dist
dist.commands = [...]
That works, but shows the following warnings each time I run make:
Makefile:209: warning: overriding commands for target `dist'
Makefile:188: warning: ignoring old commands for target `dist'
Apart from that, it works pretty well and completely overwrites Qmake's default make dist target. But the warnings are really annoying.
I could use a different target name such as make dist-all, but make dist is an established standard command. Is it possible to overwrite Qmake's make dist without getting warnings?
Maybe I'm on the wrong track? Should I handle this issue in a different way?