]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Makefile.PL
examples: add empty "lib" dir to placate plackup
[public-inbox.git] / Makefile.PL
index 96c5903bcfc479e2d767d12d21fe9a0196c09b91..e9e4e2abee9fd8befdb4b1b47245d4f0c41f6d0f 100644 (file)
@@ -71,7 +71,8 @@ $v->{xdocs} = [ map { "Documentation/.x/.$_.txt" } @xman ];
 $v->{xdocs_html} = [ map { "Documentation/.x/.$_.html" } @xman ];
 for (@{$v->{xdocs}}) {
        $t->{"$_ : | Documentation/.x"} = [
-               '$(PERL) -w Documentation/extman.perl >$@',
+               '$(PERL) -w Documentation/extman.perl $@ >$@+',
+               'mv $@+ $@'
        ];
        my $html = $_;
        $html =~ s/\.txt\z/.html/;
@@ -168,8 +169,16 @@ dsyn :: \$(addsuffix .syntax, \$(filter \$(changed), \$(syn_files)))
 check-manifest :: MANIFEST
        if git ls-files >\$?.gen 2>&1; then diff -u \$? \$?.gen; fi
 
-check:: pure_all check-manifest
-       \$(EATMYDATA) \$(PROVE) -bvw -j\$(N)
+# the traditional way running per-*.t processes:
+check-each :: pure_all check-manifest
+       \$(EATMYDATA) \$(PROVE) --state=save -bvw -j\$(N)
+
+# lightly-tested way to runn tests, relies "--state=save" in check-each
+# for best performance
+check-run :: pure_all check-manifest
+       \$(EATMYDATA) \$(PROVE) -bvw t/run.perl :: -j\$(N)
+
+check :: check-each
 
 lib/PublicInbox/UserContent.pm :: contrib/css/216dark.css
        \$(PERL) -I lib \$@ \$?