From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <e@80x24.org> X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5D4941F513 for <meta@public-inbox.org>; Fri, 8 Dec 2023 03:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1702007679; bh=JpAwDwMYIEZ6gjl6O6jvTyGYeUxEYp26N7IrDNBjun4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=suGcsqRBZQO1qy9hu2tS2pBkjH5GL38z/fDS0+x6j5FfDwUfq0bEgsN82Pi6vk63t dXdgaWDRO6XeDgksE0VEnEXC7ycDXn6yloco3puEp18dcTbMfSm//hTQO9YEJNQenC ocnUIa4ubCHEO7bq6ajSOjHezUYZ4sZKQHj32Vfw= From: Eric Wong <e@80x24.org> To: meta@public-inbox.org Subject: [PATCH 4/6] makefile: add `check-build' target Date: Fri, 8 Dec 2023 03:54:36 +0000 Message-ID: <20231208035438.3710696-5-e@80x24.org> In-Reply-To: <20231208035438.3710696-1-e@80x24.org> References: <20231208035438.3710696-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: <meta.public-inbox.org> A quick build check can detect bugs more quickly normal runtime tests. --- Makefile.PL | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index 28f8263e..2b2e6b18 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -34,6 +34,19 @@ my @syn = (@EXE_FILES, grep(m!^lib/.*\.pm$!, @manifest), @scripts); @syn = grep(!/SaPlugin/, @syn) if !eval { require Mail::SpamAssasin }; $v->{syn_files} = \@syn; $v->{my_syntax} = [map { "$_.syntax" } @syn]; +my %native = ( + XapHelperCxx => [ qw(xh_cidx.h xh_mset.h xap_helper.h) ], +); +my @ck_build; +for my $m (sort keys %native) { + my $hdr = $native{$m}; + my @dep = map { "lib/PublicInbox/$_" } ("$m.pm", @$hdr); + $t->{"$m.check_build: @dep"} = [ "\$(PERL) -w -I lib ". + "-MPublicInbox::$m -e PublicInbox::${m}::check_build" ]; + push @ck_build, "$m.check_build"; +} +$t->{"check-build: @ck_build"} = []; + my @no_pod; $v->{-m1} = [ map { my $x = (split('/'))[-1];