Actually, INSTALLS works fine:

Qt Code:
  1. TARGET = bin/tea
  2. target.path = /usr/local/bin
  3. INSTALLS += target
To copy to clipboard, switch view to plain text mode 

and qmake generates a makefile with this lines:

Qt Code:
  1. install_target: first FORCE
  2. @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/
  3. -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
  4. -strip "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
  5.  
  6. uninstall_target: FORCE
  7. -$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
  8. -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/
To copy to clipboard, switch view to plain text mode 

The problem is - I don't need the last line. How to disable the attempt to remove the installation directory? Let's assume that my binary is installed to /usr/local/bin. Make uninstall trying to remove this dir as well as the binary file. What I can do to prevent such action?