Hi all.
i have a qmake project file that is generating a strange Makefile.

the interesting part of the .pro is:
Qt Code:
  1. headers.path = /usr/local/include/gdata
  2. headers.files = common/*.h contacts/*.h
  3.  
  4. binaries.path = /usr/local/lib
  5. binaries.files = libgdata.so*
  6.  
  7. INSTALLS += headers binaries
To copy to clipboard, switch view to plain text mode 

and here is the generated Makefile (only interesting part):
Qt Code:
  1. ####### Install
  2.  
  3. install_headers: first FORCE
  4. @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/include/gdata/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/include/gdata/
  5. # MORE FILES HERE
  6. -$(INSTALL_FILE) /home/whites/qtcreator/workspace/libgdata-cpp/contacts/webrequestmanager.h $(INSTALL_ROOT)/usr/local/include/gdata/
  7.  
  8.  
  9. uninstall_headers: FORCE
  10. -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/include/gdata/httprequestmanager.h
  11. #MORE FILES HERE
  12. -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/include/gdata/webrequestmanager.h
  13. -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/include/gdata/
  14.  
  15.  
  16. install_binaries: first FORCE
  17. @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/lib/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/lib/
  18. -$(INSTALL_PROGRAM) /home/whites/qtcreator/workspace/libgdata-cpp/libgdata.so $(INSTALL_ROOT)/usr/local/lib/
  19. -$(INSTALL_PROGRAM) /home/whites/qtcreator/workspace/libgdata-cpp/libgdata.so.0 $(INSTALL_ROOT)/usr/local/lib/
  20. -$(INSTALL_PROGRAM) /home/whites/qtcreator/workspace/libgdata-cpp/libgdata.so.0.0 $(INSTALL_ROOT)/usr/local/lib/
  21. -$(INSTALL_PROGRAM) /home/whites/qtcreator/workspace/libgdata-cpp/libgdata.so.0.0.1 $(INSTALL_ROOT)/usr/local/lib/
  22.  
  23.  
  24. uninstall_binaries: FORCE
  25. -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/lib/libgdata.so
  26. -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/lib/libgdata.so.0
  27. -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/lib/libgdata.so.0.0
  28. -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/lib/libgdata.so.0.0.1
  29. -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/lib/
  30.  
  31.  
  32. install: install_headers install_binaries FORCE
  33.  
  34. uninstall: uninstall_headers uninstall_binaries FORCE
  35.  
  36. FORCE:
To copy to clipboard, switch view to plain text mode 

the installation part is ok, but the uninstall is not, because of this line:

Qt Code:
  1. -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/lib/
To copy to clipboard, switch view to plain text mode 

of course this line is not a good idea.
where's the problem?