[Qt] Make 'make -f Makefile.DerivedSources qmake' work
[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(subpro, [^a-zA-Z0-9_], -)
11     eval($${subtarget}.makefile = "Makefile.DerivedSources")
12     eval(generated_files-$${subtarget}.commands = (cd $$subdir && $(MAKE) -f Makefile.DerivedSources generated_files))
13     QMAKE_EXTRA_TARGETS += generated_files-$${subtarget}
14     generated_files.depends += generated_files-$${subtarget}
15 }
16
17 QMAKE_EXTRA_TARGETS += generated_files