maint.mk: support update-copyright-local
authorJim Meyering <meyering@redhat.com>
Thu, 6 Aug 2009 07:25:05 +0000 (09:25 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 6 Aug 2009 21:44:09 +0000 (23:44 +0200)
* top/maint.mk (update-copyright-local): Define place-holder.
(update-copyright): Depend on $(update-copyright-local).

ChangeLog
top/maint.mk

index 7bd3dce..de582cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-08-06  Jim Meyering  <meyering@redhat.com>
 
+       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  <meyering@redhat.com>
+
        selinux-at: new module
        Initially written for coreutils, this module will soon be
        used by findutils, too.
index 2df7c04..a4ce064 100644 (file)
@@ -772,11 +772,15 @@ INDENT_SOURCES ?= $(C_SOURCES)
 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)/$@