[Qt] Make it possible (on *nix at least) to recursively call "make generated_files"
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jan 2010 09:57:26 +0000 (09:57 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jan 2010 09:57:26 +0000 (09:57 +0000)
Reviewed by Tor Arne Vestbø.

* DerivedSources.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@53532 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
DerivedSources.pro

index fa65c2ed4ffd02376894ac3b13217a9214145ac2..d669ebc5d8d3b7fc1a715704866caffeaefad629 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-01-20  Simon Hausmann  <simon.hausmann@nokia.com>
+
+        Reviewed by Tor Arne Vestbø.
+
+        [Qt] Make it possible (on *nix at least) to recursively call "make generated_files"
+
+        * DerivedSources.pro:
+
 2010-01-19  Gustavo Noronha Silva  <gns@gnome.org>
 
         Unreviewed. Shared library versioning update for 1.1.19.
index c450b282c6cc8481a1a89321f5acff2326832232..54845c38dda101d806e180bb7dfbe4803acd6b86 100644 (file)
@@ -5,3 +5,12 @@ SUBDIRS += \
         JavaScriptCore/DerivedSources.pro \
         WebCore/DerivedSources.pro
 
+for(subpro, SUBDIRS) {
+    subdir = $${dirname(subpro)}
+    subtarget = $$replace(subdir, [^A-Za-z0-9], _)
+    eval(generated_files-$${subtarget}.commands = (cd $$subdir && $(MAKE) -f $(MAKEFILE).DerivedSources generated_files))
+    QMAKE_EXTRA_TARGETS += generated_files-$${subtarget}
+    generated_files.depends += generated_files-$${subtarget}
+}
+
+QMAKE_EXTRA_TARGETS += generated_files