From: Jim Meyering Date: Thu, 6 Aug 2009 07:25:05 +0000 (+0200) Subject: maint.mk: support update-copyright-local X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=851901debf791efa28059baf50705f4e57fff5e8;p=pspp 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 index 7bd3dce43b..de582cf06d 100644 --- 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 index 2df7c04673..a4ce064924 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)/$@