I am trying to add an 'install' target to my project Makefile. When I try to use the INSTALLS mechanism of the .pro file to produce the install target, an $(INSTALL_ROOT) is always prefixed to the target.path I specify:

target.path = /$(DEPLOY_DIR)/bin

produces

-$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/$(DEPLOY_DIR) /bin/$(QMAKE_TARGET)"

The install I want to perform is not a system install but one based on the project directory tree I am working in, so the DEPLOY_DIR will usually specify a relative path.

I also have to prefix the .path with a '/' otherwise qmake will prefix the path with the current dir.
Can I get the install process just use the path I specify?