From 851901debf791efa28059baf50705f4e57fff5e8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 6 Aug 2009 09:25:05 +0200 Subject: [PATCH] maint.mk: support update-copyright-local * top/maint.mk (update-copyright-local): Define place-holder. (update-copyright): Depend on $(update-copyright-local). --- ChangeLog | 6 ++++++ top/maint.mk | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7bd3dce43..de582cf06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 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 Initially written for coreutils, this module will soon be used by findutils, too. diff --git a/top/maint.mk b/top/maint.mk index 2df7c0467..a4ce06492 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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)/$@ -- 2.11.0