]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_mirror: add `index' target to generated Makefile
authorEric Wong <e@80x24.org>
Mon, 28 Nov 2022 05:31:37 +0000 (05:31 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Nov 2022 23:38:55 +0000 (23:38 +0000)
It can probably be a useful hint to avoid misleading users
into always using `--reindex'.

lib/PublicInbox/LeiMirror.pm

index 3bc19d2fbd10850563fd27f22510b6e931b64a5c..4b6da2604212d88be97f6eb415349da6391c7166 100644 (file)
@@ -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 {