| 1 |
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- |
| 2 |
# |
| 3 |
# This file is part of the LibreOffice project. |
| 4 |
# |
| 5 |
# This Source Code Form is subject to the terms of the Mozilla Public |
| 6 |
# License, v. 2.0. If a copy of the MPL was not distributed with this |
| 7 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 8 |
# |
| 9 |
|
| 10 |
gb_CountersOutdated_COUNTER_ALL:= |
| 11 |
gb_CountersOutdated_COUNTER_TYPES:= |
| 12 |
|
| 13 |
.PHONY: countoutdated |
| 14 |
countoutdated: |
| 15 |
$(info total outdated files: $(words $(gb_CountersOutdated_COUNTER_ALL))) |
| 16 |
$(info types of outdated files: $(gb_CountersOutdated_TYPES)) |
| 17 |
$(foreach type,$(gb_CountersOutdated_TYPES),$(info $(type): $(words $(gb_CountersOutdated_COUNTER_$(type))))) |
| 18 |
@true |
| 19 |
|
| 20 |
ifneq ($(filter countoutdated,$(MAKECMDGOALS)),) |
| 21 |
|
| 22 |
$(WORKDIR)/%: |
| 23 |
$(eval gb_CountersOutdated_COUNTER_ALL+= x) |
| 24 |
$(eval gb_CountersOutdated__TYPE=$(firstword $(subst /, ,$*))) |
| 25 |
$(if $(filter undefined,$(origin gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE))),$(eval gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE):=) $(eval gb_CountersOutdated_TYPES+=$(gb_CountersOutdated__TYPE))) |
| 26 |
$(eval gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE)+= x) |
| 27 |
@true |
| 28 |
|
| 29 |
endif |
| 30 |
|
| 31 |
# vim: set noet ts=4 sw=4: |