# HG changeset patch # User Jim Meyering # Date 1249543505 -7200 # Node ID 8d6e2578c4fb60a32add300714a072cc4b6d4cc2 # Parent c51247a03b74c3d9b6d9e9740dd57de5aad2b3d2 maint.mk: support update-copyright-local * top/maint.mk (update-copyright-local): Define place-holder. (update-copyright): Depend on $(update-copyright-local). diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-06 Jim Meyering + + maint.mk: support update-copyright-local + * top/maint.mk (update-copyright-local): Define place-holder. + (update-copyright): Depend on $(update-copyright-local). + 2009-08-06 Jim Meyering selinux-at: new module diff --git a/top/maint.mk b/top/maint.mk --- a/top/maint.mk +++ b/top/maint.mk @@ -772,11 +772,15 @@ indent: indent $(INDENT_SOURCES) +# If you have an additional project-specific rule, +# define it in cfg.mk and set this variable to its name. +update-copyright-local ?= + # Run this rule once per year (usually early in January) # to update all FSF copyright year lists in your project. update-copyright-exclude-regexp ?= (^|/)COPYING$$ .PHONY: update-copyright -update-copyright: +update-copyright: $(update-copyright-local) grep -l -w Copyright $$($(VC_LIST_EXCEPT)) \ | grep -v -E '$(update-copyright-exclude-regexp)' \ | xargs $(build_aux)/$@