[Qt] Make it possible (on *nix at least) to recursively call "make generated_files"
[WebKit-https.git] / DerivedSources.pro
1 TEMPLATE = subdirs
2 CONFIG += ordered
3
4 SUBDIRS += \
5         JavaScriptCore/DerivedSources.pro \
6         WebCore/DerivedSources.pro
7
8 for(subpro, SUBDIRS) {
9     subdir = $${dirname(subpro)}
10     subtarget = $$replace(subdir, [^A-Za-z0-9], _)
11     eval(generated_files-$${subtarget}.commands = (cd $$subdir && $(MAKE) -f $(MAKEFILE).DerivedSources generated_files))
12     QMAKE_EXTRA_TARGETS += generated_files-$${subtarget}
13     generated_files.depends += generated_files-$${subtarget}
14 }
15
16 QMAKE_EXTRA_TARGETS += generated_files