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)),) ...@@ -29,6 +29,13 @@ ifneq ($(filter countoutdated,$(MAKECMDGOALS)),)
gb_SrsTarget_add_template= gb_SrsTarget_add_template=
gb_SrsTarget_add_templates= gb_SrsTarget_add_templates=
gb_Output_announce=
ifneq ($(strip $(filter-out countoutdated,$(MAKECMDGOALS))),)
countoutdated: $(filter-out countoutdated,$(MAKECMDGOALS))
else
countoutdated: $(.DEFAULT_GOAL)
endif
endif endif
# vim: set noet ts=4 sw=4: # vim: set noet ts=4 sw=4:
...@@ -25,23 +25,28 @@ ...@@ -25,23 +25,28 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above. # instead of those above.
gb_CountersOutdated_COUNTER:= gb_CountersOutdated_COUNTER_ALL:=
gb_CountersOutdated_COUNTER_TYPES:=
.PHONY: countoutdated .PHONY: countoutdated
countoutdated: $(filter-out countoutdated,$(MAKECMDGOALS)) countoutdated:
$(info total outdated files: $(words $(gb_CountersOutdated_COUNTER))) $(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 @true
ifneq ($(filter countoutdated,$(MAKECMDGOALS)),) ifneq ($(filter countoutdated,$(MAKECMDGOALS)),)
gb_CHECKOBJECTOWNER := $(false)
$(WORKDIR)/%: $(WORKDIR)/%:
$(info $* is outdated.) $(eval gb_CountersOutdated_COUNTER_ALL+= x)
$(eval gb_CountersOutdated_COUNTER+= 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 @true
$(OUTDIR)/%: $(OUTDIR)/%:
$(info $* is outdated (OUTDIR).)
$(eval gb_CountersOutdated_COUNTER+= x)
@true @true
endif endif
......
...@@ -126,7 +126,9 @@ else ...@@ -126,7 +126,9 @@ else
gb_FULLDEPS := $(true) gb_FULLDEPS := $(true)
endif endif
ifeq ($(origin gb_CHECKOBJECTOWNER),undefined)
gb_CHECKOBJECTOWNER := $(true) gb_CHECKOBJECTOWNER := $(true)
endif
# save user-supplied flags for latter use # save user-supplied flags for latter use
ifneq ($(strip $(CFLAGS)),) 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