Hi All,

I wanted to roll building my Assistant-based help into the general qmake build process so I thought I'd just shoehorn it into the pro file. I looked at the usually very clear docs and found them somewhat lacking. Nothing I did seem to generate an extra target. This is the session where I created a basic empty project and pasted the example from the docs:
Qt Code:
  1. chrisw@newton ~/workspace/zzbug $ cat test.pro
  2. TARGET = test
  3. TEMPLATE = app
  4. CONFIG += qt warn_on
  5. SOURCES += main.cpp
  6.  
  7. mytarget.target = .buildfile
  8. mytarget.commands = touch $$mytarget.target
  9. mytarget.depends = mytarget2
  10.  
  11. mytarget2.commands = @echo Building $$mytarget.target
  12.  
  13. QMAKE_EXTRA_TARGETS += mytarget mytarget2
  14.  
  15. chrisw@newton ~/workspace/zzbug $ qmake test.pro
  16.  
  17. chrisw@newton ~/workspace/zzbug $ make mytarget2
  18. Building .buildfile
  19.  
  20. chrisw@newton ~/workspace/zzbug $ make mytarget
  21. make: *** No rule to make target `mytarget'. Stop.
  22.  
  23. chrisw@newton ~/workspace/zzbug $
To copy to clipboard, switch view to plain text mode 
Nothing I do generates a target "mytarget" in the Makefile although "mytarget2" does get inserted. What obvious step am I missing?

The example is on Linux/Qt 4.5.2 but I get the same (non-) result on Windows(2009.3 SDK).

Chris