Thanks for the reply. It got me thinking and the problem is in the Makefile.
It looks like this:

Qt Code:
  1. COPY_FILE = cp -f -R
  2.  
  3. dist: distdir FORCE
  4. (cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) #-r $(DISTDIR)
  5. distdir: FORCE
  6. @test -d $(DISTDIR) || mkdir -p $(DISTDIR)
  7. $(COPY_FILE) --parents $(DIST) $(DISTDIR)/
  8. $(COPY_FILE) --parents /../lib64/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/
  9. $(COPY_FILE) --parents <a list of my header files> $(DISTDIR)/
  10. $(COPY_FILE) --parents <a list of my source files> $(DISTDIR)/
To copy to clipboard, switch view to plain text mode 

From my source directory I run the test command
Qt Code:
  1. cp -f -R --parents ../bin/LApp.xml /tmp
To copy to clipboard, switch view to plain text mode 

and it fails to copy the file to the tmp directory.

I would have thought the copy options would have been able to handle copying the LApp.xml file? But no.

If i remove the --parents from this line ($(COPY_FILE) --parents $(DIST) $(DISTDIR)/) then it works...

but my problem now is that my Makefile is generated from a .pro with qmake.... how do I get it to remove the --parents from the line in the Makefile without having to manually remove it every time i do a qmake?

Thanks.