Hi,

I have been trying to get qmake to install by headers for me using an install target. The following is what I have been able to get so far, but I cannot get the headers that are created by uic for installation.

Qt Code:
  1. ALL_HEADERS = $${HEADERS} $${GENERATED_FILES}
  2.  
  3. devel.path = $${HEADER_DIR}
  4. devel.depends = compiler_uic_make_all
  5. devel.extra = -$(MKDIR) $${HEADER_DIR} && $(COPY_FILE) --parents $${ALL_HEADERS} $${HEADER_DIR} && cd $${HEADER_DIR} && chmod 644 $${ALL_HEADERS}
  6. devel.uninstall = -cd $${HEADER_DIR}; $(DEL_FILE) $${ALL_HEADERS}
  7. INSTALLS += devel
To copy to clipboard, switch view to plain text mode 

The problem is that $${GENERATED_FILES} is empty when this is run (before the uic compiler is loaded I'm assuming). Is there a way to have it not expanded until it is full? It's not in the Makefile, so it can't be put that late unfortunately.

I'd like to use the .installs of devel, but that flattens the structure of the headers, which isn't what i want. cp has a --parents switch which (I'm guessing) does what I want. I was hoping if there was anything I can do to get this to work without using a bash script or something of the sort. Thank you.

--MathStuf