]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Makefile.PL
www: move mirror instructions to /text/
[public-inbox.git] / Makefile.PL
index 6da2ed7082e93c9aee50d768937f04a707d475e2..2af8c2f1757dbf574940f0f24bf26f666652841b 100644 (file)
@@ -5,6 +5,7 @@ use strict;
 use ExtUtils::MakeMaker;
 open my $m, '<', 'MANIFEST' or die "open(MANIFEST): $!\n";
 chomp(my @manifest = (<$m>));
+push @manifest, 'lib/PublicInbox.pm'; # generated
 my @EXE_FILES = grep(m!^script/!, @manifest);
 my $v = {};
 my $t = {};
@@ -44,11 +45,17 @@ $v->{-m1} = [ map {
                }
        } @EXE_FILES,
        qw(
-       lei-add-external lei-config lei-daemon-kill lei-daemon-pid
-       lei-forget-external lei-import lei-init lei-ls-external lei-q)];
+       lei-add-external lei-blob lei-config lei-convert lei-edit-search
+       lei-daemon-kill lei-daemon-pid lei-forget-external lei-forget-search
+       lei-import lei-init lei-lcat lei-ls-external lei-ls-label
+       lei-ls-mail-sync lei-ls-search lei-p2q lei-q lei-rediff lei-tag
+       lei-up)];
 $v->{-m5} = [ qw(public-inbox-config public-inbox-v1-format
-               public-inbox-v2-format public-inbox-extindex-format) ];
-$v->{-m7} = [ qw(lei-overview public-inbox-overview public-inbox-tuning) ];
+               public-inbox-v2-format public-inbox-extindex-format
+               lei-mail-formats lei-store-format
+               ) ];
+$v->{-m7} = [ qw(lei-overview public-inbox-overview public-inbox-tuning
+               public-inbox-glossary) ];
 $v->{-m8} = [ qw(public-inbox-daemon) ];
 my @sections = (1, 5, 7, 8);
 $v->{check_80} = [];
@@ -67,7 +74,8 @@ for my $i (@sections) {
                $t->{"Documentation/$m.html : $txt"} = [ "\$(txt2pre) <$txt" ];
                $t->{".$m.cols : $m.$i"} = [
                        "\@echo CHECK80 $m.$i;".
-                       "COLUMNS=80 \$(MAN) ./$m.$i | \$(check_man)" ];
+                       "COLUMNS=80 \$(MAN) ./$m.$i | \$(check_man)",
+                       '>$@' ];
                $t->{".$m.lexgrog: $m.$i"} = [
                        "\@echo LEXGROG $m.$i;" .
                        "\$(LEXGROG) ./$m.$i >\$\@+ && mv \$\@+ \$@" ];
@@ -135,7 +143,7 @@ WriteMakefile(
        NAME => 'PublicInbox', # n.b. camel-case is not our choice
 
        # XXX drop "PENDING" in .pod before updating this!
-       VERSION => '1.6.1',
+       VERSION => '1.7.0.PENDING',
 
        AUTHOR => 'Eric Wong <e@80x24.org>',
        ABSTRACT => 'public-inbox server infrastructure',
@@ -175,7 +183,8 @@ WriteMakefile(
        },
        MAN3PODS => \%man3,
        clean => {
-               FILES => 't/home*/setup* t/home*/t* t/home*/.public-inbox'
+               FILES => 't/home*/setup* t/home*/t* t/home*/.public-inbox '.
+                       't/data-gen/*'
        },
 );
 
@@ -237,13 +246,17 @@ Makefile.PL : MANIFEST
 # prefix + bindir matches git.git Makefile:
 prefix = \$(HOME)
 bindir = \$(prefix)/bin
-symlink-install :
+symlink-install : lib/PublicInbox.pm
        mkdir -p \$(bindir)
        lei=\$\$(realpath lei.sh) && cd \$(bindir) && \\
        for x in \$(EXE_FILES); do \\
                ln -sf "\$\$lei" \$\$(basename "\$\$x"); \\
        done
 
+pure_all :: lib/PublicInbox.pm
+lib/PublicInbox.pm : FORCE
+       VERSION=\$(VERSION) \$(PERL) -w ./version-gen.perl
+
 update-copyrights :
        \@case '\$(GNULIB_PATH)' in '') echo >&2 GNULIB_PATH unset; false;; esac
        git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \\