Kaydet (Commit) 8ee4e99a authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

some more work on the make countoutdated target

üst 39f3d871
......@@ -29,6 +29,13 @@ ifneq ($(filter countoutdated,$(MAKECMDGOALS)),)
gb_SrsTarget_add_template=
gb_SrsTarget_add_templates=
gb_Output_announce=
ifneq ($(strip $(filter-out countoutdated,$(MAKECMDGOALS))),)
countoutdated: $(filter-out countoutdated,$(MAKECMDGOALS))
else
countoutdated: $(.DEFAULT_GOAL)
endif
endif
# vim: set noet ts=4 sw=4:
......@@ -25,23 +25,28 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
gb_CountersOutdated_COUNTER:=
gb_CountersOutdated_COUNTER_ALL:=
gb_CountersOutdated_COUNTER_TYPES:=
.PHONY: countoutdated
countoutdated: $(filter-out countoutdated,$(MAKECMDGOALS))
$(info total outdated files: $(words $(gb_CountersOutdated_COUNTER)))
countoutdated:
$(info total outdated files: $(words $(gb_CountersOutdated_COUNTER_ALL)))
$(info types of outdated files: $(gb_CountersOutdated_TYPES))
$(foreach type,$(gb_CountersOutdated_TYPES),$(info $(type): $(words $(gb_CountersOutdated_COUNTER_$(type)))))
@true
ifneq ($(filter countoutdated,$(MAKECMDGOALS)),)
gb_CHECKOBJECTOWNER := $(false)
$(WORKDIR)/%:
$(info $* is outdated.)
$(eval gb_CountersOutdated_COUNTER+= x)
$(eval gb_CountersOutdated_COUNTER_ALL+= x)
$(eval gb_CountersOutdated__TYPE=$(firstword $(subst /, ,$*)))
$(if $(filter undefined,$(origin gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE))),$(eval gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE):=) $(eval gb_CountersOutdated_TYPES+=$(gb_CountersOutdated__TYPE)))
$(eval gb_CountersOutdated_COUNTER_$(gb_CountersOutdated__TYPE)+= x)
@true
$(OUTDIR)/%:
$(info $* is outdated (OUTDIR).)
$(eval gb_CountersOutdated_COUNTER+= x)
@true
endif
......
......@@ -126,7 +126,9 @@ else
gb_FULLDEPS := $(true)
endif
ifeq ($(origin gb_CHECKOBJECTOWNER),undefined)
gb_CHECKOBJECTOWNER := $(true)
endif
# save user-supplied flags for latter use
ifneq ($(strip $(CFLAGS)),)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment