From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4176D158020 for ; Tue, 13 Dec 2022 10:45:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9944CE0828; Tue, 13 Dec 2022 10:45:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A3DCE0828 for ; Tue, 13 Dec 2022 10:45:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9BC46335C65 for ; Tue, 13 Dec 2022 10:45:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0DADF6F2 for ; Tue, 13 Dec 2022 10:45:34 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1670928332.21b7a3c44f19f3c9d15466ee2a955833518a88e4.xgqt@gentoo> Subject: [gentoo-commits] proj/emacs-openrc:master commit in: / X-VCS-Repository: proj/emacs-openrc X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 21b7a3c44f19f3c9d15466ee2a955833518a88e4 X-VCS-Branch: master Date: Tue, 13 Dec 2022 10:45:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 569663c3-c602-4a16-9c6d-374d26f3908e X-Archives-Hash: 7fe6a72273987dfd3426b69b6741c94b commit: 21b7a3c44f19f3c9d15466ee2a955833518a88e4 Author: Maciej Barć gentoo org> AuthorDate: Tue Dec 13 10:45:32 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Dec 13 10:45:32 2022 +0000 URL: https://gitweb.gentoo.org/proj/emacs-openrc.git/commit/?id=21b7a3c4 Makefile: update Signed-off-by: Maciej Barć gentoo.org> Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 62da177..ecb9ff5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ +PWD ?= $(shell pwd) + +ELS = $(wildcard $(PWD)/*.el) +ELCS = $(ELS:.el=.elc) + EMACS := emacs -FIND := find +FIND := rm -f -EMACFLAGS := --batch -q --no-site-file +EMACFLAGS := --batch -q --no-site-file -L $(PWD) EMACSCMD = $(EMACS) $(EMACFLAGS) @@ -10,15 +15,16 @@ all: clean compile .PHONY: clean clean: - $(FIND) $(PWD) -iname "*.elc" -delete + $(RM) $(ELCS) %.elc: $(EMACSCMD) --eval "(byte-compile-file \"$(*).el\" 0)" .PHONY: compile -compile: openrc.elc +compile: $(ELCS) .PHONY: install install: compile $(EMACSCMD) \ - --eval "(require 'package)" --eval "(package-install-file \"$(PWD)\")" + --eval "(require 'package)" \ + --eval "(package-install-file \"$(PWD)\")"