diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-25 06:19:56 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-25 07:01:07 (GMT) |
commit | b063347228548eed177216e37801e800bda7e5b0 (patch) | |
tree | 1857e1da7da1186307fbb7a4c3b26ceeb6e1c440 /mkspecs/features | |
parent | 4ae8ab9d7ce2cde5c798f13a7bccf05976eb5d54 (diff) | |
download | Qt-b063347228548eed177216e37801e800bda7e5b0.zip Qt-b063347228548eed177216e37801e800bda7e5b0.tar.gz Qt-b063347228548eed177216e37801e800bda7e5b0.tar.bz2 |
Define a GNU-style `check' target for all projects.
Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/default_post.prf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mkspecs/features/default_post.prf b/mkspecs/features/default_post.prf index 01074f4..155bfc3 100644 --- a/mkspecs/features/default_post.prf +++ b/mkspecs/features/default_post.prf @@ -8,3 +8,14 @@ incredibuild_xge { QMAKE_INCDIR += $$QMAKE_INCDIR_POST QMAKE_LIBDIR += $$QMAKE_LIBDIR_POST + +# Let every project have a standard GNU `check' target +!contains(QMAKE_EXTRA_TARGETS, check) { + # `make check' should iterate through all subdirs + contains(TEMPLATE, subdirs) { + check.CONFIG = recursive + check.recurse = $$SUBDIRS + check.recurse_target = check + } + QMAKE_EXTRA_TARGETS += check +} |