From a1d565aa5b47ec56243e74d4ac8b4988a751fef2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 14 Feb 2010 19:28:39 +0100 Subject: [PATCH] maint.mk: prohibit inclusion of "hash-pjw.h" without_use * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@". (sc_prohibit_hash_pjw_without_use): New rule. --- ChangeLog | 4 ++++ top/maint.mk | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8fdabc256..ce8a8df77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-02-14 Jim Meyering + maint.mk: prohibit inclusion of "hash-pjw.h" without_use + * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@". + (sc_prohibit_hash_pjw_without_use): New rule. + maint.mk: allow the default upload destination dir to be overridden * top/maint.mk (upload_dest_dir_): Define with a default that preserves the status quo. diff --git a/top/maint.mk b/top/maint.mk index cfe0fd75b..128de8b0f 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -374,10 +374,15 @@ clear|delete|free|get_(first|next)|insert|lookup|print_statistics|reset_tuning _hash_fn = \<($(_hash_re)) *\( _hash_struct = (struct )?\<[Hh]ash_(table|tuning)\> sc_prohibit_hash_without_use: - h='"hash.h"' \ + @h='"hash.h"' \ re='$(_hash_fn)|$(_hash_struct)'\ $(_header_without_use) +sc_prohibit_hash_pjw_without_use: + @h='"hash-pjw.h"' \ + re='\