summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/cfg.mk b/cfg.mk
index bcb9978..74f094b 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -65,10 +65,16 @@ sc_prohibit_emacs__indent_tabs_mode__setting:
halt='use of emacs indent-tabs-mode: setting' \
$(_sc_search_regexp)
+ifeq ($(srcdir),.)
+ srcdirslash =
+else
+ srcdirslash = $(srcdir)/
+endif
+
sc_gzip_copyright_check:
@require='Copyright \(C\) '$$(date +%Y)' Free' \
- in_vc_files=$(srcdir)/gzip.c \
- halt="out of date copyright in $$in_files; update it" \
+ in_vc_files='^$(srcdirslash)(gzip\.c|[^z].*\.in|z[^ef].*\.in|zf[^g].*\.in)$$' \
+ halt="out of date copyright in $$in_vc_files; update it" \
$(_sc_search_regexp)
include $(srcdir)/dist-check.mk