Branch libreoffice-5-0-4
[LibreOffice.git] / solenv / gbuild / extensions / pre_Counters.mk
blob53cffcd638993334089e046d30656ca5d55d6b02
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 gb_CountersOutdated_COUNTER_ALL:=
10 gb_CountersOutdated_COUNTER_TYPES:=
12 .PHONY: countoutdated
13 countoutdated:
14 $(info total outdated files: $(words $(gb_CountersOutdated_COUNTER_ALL)))
15 $(info types of outdated files: $(gb_CountersOutdated_TYPES))
16 $(foreach type,$(gb_CountersOutdated_TYPES),$(info $(type): $(words $(gb_CountersOutdated_COUNTER_$(type)))))
17 @true
19 ifneq ($(filter countoutdated,$(MAKECMDGOALS)),)
21 $(WORKDIR)/%:
22 $(eval gb_CountersOutdated_COUNTER_ALL+= x)
23 $(eval gb_CountersOutdated__TYPE=$(firstword $(subst /, ,$*)))
24 $(if $(filter undefined,$(origin gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE))),$(eval gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE):=) $(eval gb_CountersOutdated_TYPES+=$(gb_CountersOutdated__TYPE)))
25 $(eval gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE)+= x)
26 @true
28 endif
30 # vim: set noet ts=4 sw=4: