From 836faf5093dfec84aa3d1a0abd5c546e02b46541 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 28 Nov 2022 05:31:37 +0000 Subject: [PATCH] lei_mirror: add `index' target to generated Makefile It can probably be a useful hint to avoid misleading users into always using `--reindex'. --- lib/PublicInbox/LeiMirror.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 3bc19d2f..4b6da260 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -763,6 +763,7 @@ help : @echo Rarely needed targets: @echo ' make reindex - may be needed for new features/bugfixes' @echo ' make compact - rewrite Xapian storage to save space' + @echo ' make index - initial index after clone fetch : public-inbox-fetch @@ -779,12 +780,14 @@ update : echo 'public-inbox index not initialized'; \ echo 'see public-inbox-index(1) man page'; \ fi +index : + public-inbox-index reindex : public-inbox-index --reindex compact : public-inbox-compact -.PHONY : help fetch update reindex compact +.PHONY : help fetch update index reindex compact EOM close $fh or die "close($f): $!"; } else { -- 2.48.1