changeset 11788:8d6e2578c4fb

maint.mk: support update-copyright-local * top/maint.mk (update-copyright-local): Define place-holder. (update-copyright): Depend on $(update-copyright-local).
author Jim Meyering <meyering@redhat.com>
date Thu, 06 Aug 2009 09:25:05 +0200
parents c51247a03b74
children f937e0a707b5
files ChangeLog top/maint.mk
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
--- 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)/$@