diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-10-20 23:19:46 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-10-21 11:54:12 +0200 |
commit | 05a33692a084f59f2fae0a535131133d2a3f6b72 (patch) | |
tree | c0d9a43575c58d4ae91763cf62987821104e35ab /solenv | |
parent | e31496c9382ebdaa6ed1c6889c0d6ecde6f57de7 (diff) |
experimental countoutdated target
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/extensions/post_Counters.mk | 34 | ||||
-rw-r--r-- | solenv/gbuild/extensions/pre_Counters.mk | 48 |
2 files changed, 82 insertions, 0 deletions
diff --git a/solenv/gbuild/extensions/post_Counters.mk b/solenv/gbuild/extensions/post_Counters.mk new file mode 100644 index 000000000000..3552351ae603 --- /dev/null +++ b/solenv/gbuild/extensions/post_Counters.mk @@ -0,0 +1,34 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Bjoern Michaelsen, Canonical Ltd. <bjoern.michaelsen@canonical.com> +# Portions created by the Initial Developer are Copyright (C) 2010 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +ifneq ($(filter countoutdated,$(MAKECMDGOALS)),) + +gb_SrsTarget_add_template= +gb_SrsTarget_add_templates= + +endif +# vim: set noet ts=4 sw=4: diff --git a/solenv/gbuild/extensions/pre_Counters.mk b/solenv/gbuild/extensions/pre_Counters.mk new file mode 100644 index 000000000000..b0563d0fc2d2 --- /dev/null +++ b/solenv/gbuild/extensions/pre_Counters.mk @@ -0,0 +1,48 @@ +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Bjoern Michaelsen, Canonical Ltd. <bjoern.michaelsen@canonical.com> +# Portions created by the Initial Developer are Copyright (C) 2010 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +gb_CountersOutdated_COUNTER:= + +.PHONY: countoutdated +countoutdated: $(filter-out countoutdated,$(MAKECMDGOALS)) + $(info total outdated files: $(words $(gb_CountersOutdated_COUNTER))) + @true + +ifneq ($(filter countoutdated,$(MAKECMDGOALS)),) + +$(WORKDIR)/%: + $(info $* is outdated.) + $(eval gb_CountersOutdated_COUNTER+= x) + @true + +$(OUTDIR)/%: + $(info $* is outdated (OUTDIR).) + $(eval gb_CountersOutdated_COUNTER+= x) + @true + +endif +# vim: set noet ts=4 sw=4: |