From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: ELPA -- making individual packages Date: Fri, 04 Sep 2020 10:41:28 -0700 Message-ID: <875z8tigmv.fsf@ericabrahamsen.net> References: <87363yjue9.fsf@ericabrahamsen.net> <87eenhvgq3.fsf@turtle-trading.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34843"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Benjamin Riefenstahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 04 19:42:42 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEFjV-0008xH-Ni for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Sep 2020 19:42:41 +0200 Original-Received: from localhost ([::1]:39908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEFjU-0003Iv-Ok for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Sep 2020 13:42:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEFiV-000258-Pd for emacs-devel@gnu.org; Fri, 04 Sep 2020 13:41:39 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:37338 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEFiT-00074m-DP for emacs-devel@gnu.org; Fri, 04 Sep 2020 13:41:39 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 6F0A9103014; Fri, 4 Sep 2020 17:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1599241289; bh=B5oPEnBAUrnZ4wA9cJnPQjtt/kc06oji9yAGJJ+nufs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MroD/dJxxYyazzZ5u1QuqDs4ADkTMEVgkh/mMOFuVquccn+QIwqZ0qii+bgRYDFZC 7L1bIO9AEOUsWT8X6HnCUX9OZjbhsHwfVdyhCXNHwwtQyip5wLxBDJ2Ap8iN0gZdLc 3auDgqCMrYMquHlxmGbvPRwa0JRsJdSnNIJFjSNY= In-Reply-To: <87eenhvgq3.fsf@turtle-trading.net> (Benjamin Riefenstahl's message of "Fri, 04 Sep 2020 15:01:08 +0200") Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/04 13:41:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254526 Archived-At: Benjamin Riefenstahl writes: > Hi all, > > Stefan Monnier writes: >> I don't think `make` can do exactly that, but there's no doubt that we >> should be able to provide a way to build just a particular package >> (maybe the target would have to be called something else than just >> `gnorb`, e.g. `compile-gnorb`). It's probably not that hard. > > Right, in GNU make I have done it like this before: > > compile-%: > echo Making package $* ... > [commands to make the package] > > test-%: > echo Testing package $* ... > [commands to test the package] Well, this is as far as I've been able to get: .PHONY: compile-%: @if [ -d "$(CURDIR)/packages/$*" ]; then \ $(MAKE) -C "$(CURDIR)/packages/$*" "*.elc"; \ else \ echo "No such package: $*"; \ fi; I'm not able to give any target to the sub-invocation of make that it will recognize as a valid target. I figured this rule shouldn't build autoloads or the *-pkg.el file, so it would be pretty simple, but I'm basically shooting in the dark here. Eric