Die .pro Datei sieht (gekürzt) etwas so aus:
TEMPLATE = subdirs
unix:!embedded:!mac:CONFIG += x11
SUBDIRS = aclock \
action \
action/toggleaction \
addressbook \
...
thread:SUBDIRS += thread/prodcons \
thread/semaphores
...
Interessant ist der Teil thread:SUBDIRS!
Das bei der Installation erzeugte Makefile sieht dann so aus:
#############################################################################
# Makefile for building: examples
# Generated by qmake (1.07a) (Qt 3.3.4) on: Mon Jun 12 09:15:08 2006
# Project: examples.pro
# Template: subdirs
# Command: $(QMAKE) -spec win32-msvc -o Makefile examples.pro
#############################################################################
MAKEFILE = Makefile
QMAKE = qmake
SUBTARGETS = \
sub-aclock \
sub-action \
sub-action-toggleaction \
sub-addressbook \
...
sub-thread-prodcons \
sub-thread-semaphores \
...
und das ist offensichtlich richtig.
Wenn ich jetzt mit der selben QT Version nochmal versuche ein Makefile zu erzeugen, dann sieht das so aus:
#############################################################################
# Makefile for building: examples
# Generated by qmake (1.07a) (Qt 3.3.4) on: Thu Apr 17 09:53:06 2008
# Project: examples.pro
# Template: subdirs
# Command: $(QMAKE) -spec win32-msvc -o test.mak examples.pro
#############################################################################
MAKEFILE = Makefile
QMAKE = qmake
SUBTARGETS = \
sub-aclock \
sub-action \
sub-action-toggleaction \
sub-addressbook \
...
Die Einträge die mit "thread:" anfangen werden unterschlagen. Alle Einträge nach dem Schema "name:" werden unterschlagen.
Das ist schlecht!
Was mache ich falsch?
Die Dokumentation zu diesem Thema ist da leider sehr einsilbig
Gruß Jacques