Thanks for the reply. It got me thinking and the problem is in the Makefile.
It looks like this:
COPY_FILE = cp -f -R
dist: distdir FORCE
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) #-r $(DISTDIR)
distdir: FORCE
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
$(COPY_FILE) --parents /../lib64/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/
$(COPY_FILE) --parents <a list of my header files> $(DISTDIR)/
$(COPY_FILE) --parents <a list of my source files> $(DISTDIR)/
COPY_FILE = cp -f -R
dist: distdir FORCE
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) #-r $(DISTDIR)
distdir: FORCE
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
$(COPY_FILE) --parents /../lib64/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/
$(COPY_FILE) --parents <a list of my header files> $(DISTDIR)/
$(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
cp -f -R --parents ../bin/LApp.xml /tmp
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.
Bookmarks