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 DD19E158020 for ; Tue, 13 Dec 2022 10:44:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36DEBE0828; Tue, 13 Dec 2022 10:44:50 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 22F89E0828 for ; Tue, 13 Dec 2022 10:44:50 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 57D843410E3 for ; Tue, 13 Dec 2022 10:44:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B55656F2 for ; Tue, 13 Dec 2022 10:44:47 +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: <1670928283.f0e4de1afc2183db941fc1b65c2af80ceff50021.xgqt@gentoo> Subject: [gentoo-commits] proj/company-ebuild:master commit in: / X-VCS-Repository: proj/company-ebuild X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: f0e4de1afc2183db941fc1b65c2af80ceff50021 X-VCS-Branch: master Date: Tue, 13 Dec 2022 10:44:47 +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: 959bd0d6-3618-4e67-9d0b-134a8c7135d4 X-Archives-Hash: d8112cefa2b3f86297cc8874e225fdbf commit: f0e4de1afc2183db941fc1b65c2af80ceff50021 Author: Maciej Barć gentoo org> AuthorDate: Tue Dec 13 10:44:43 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Dec 13 10:44:43 2022 +0000 URL: https://gitweb.gentoo.org/proj/company-ebuild.git/commit/?id=f0e4de1a Makefile: update Signed-off-by: Maciej Barć gentoo.org> Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 606ff5d..ecb9ff5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ PWD ?= $(shell pwd) +ELS = $(wildcard $(PWD)/*.el) +ELCS = $(ELS:.el=.elc) + EMACS := emacs -FIND := find +FIND := rm -f EMACFLAGS := --batch -q --no-site-file -L $(PWD) EMACSCMD = $(EMACS) $(EMACFLAGS) @@ -10,18 +13,15 @@ EMACSCMD = $(EMACS) $(EMACFLAGS) .PHONY: all all: clean compile - .PHONY: clean clean: - $(FIND) $(PWD) -iname "*.elc" -delete - + $(RM) $(ELCS) %.elc: $(EMACSCMD) --eval "(byte-compile-file \"$(*).el\" 0)" .PHONY: compile -compile: company-ebuild-custom.elc company-ebuild-keywords.elc company-ebuild.elc - +compile: $(ELCS) .PHONY: install install: compile