From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-openrc:master commit in: /
Date: Tue, 13 Dec 2022 10:45:34 +0000 (UTC) [thread overview]
Message-ID: <1670928332.21b7a3c44f19f3c9d15466ee2a955833518a88e4.xgqt@gentoo> (raw)
commit: 21b7a3c44f19f3c9d15466ee2a955833518a88e4
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 13 10:45:32 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> 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ć <xgqt <AT> 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)\")"
next reply other threads:[~2022-12-13 10:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 10:45 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-21 9:50 [gentoo-commits] proj/emacs-openrc:master commit in: / Maciej Barć
2023-04-26 0:12 Maciej Barć
2023-04-25 20:54 Maciej Barć
2023-04-25 19:43 Maciej Barć
2023-02-10 13:32 Maciej Barć
2023-02-10 13:32 Maciej Barć
2023-02-03 13:51 Maciej Barć
2022-07-07 23:28 Maciej Barć
2022-07-07 23:05 Maciej Barć
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1670928332.21b7a3c44f19f3c9d15466ee2a955833518a88e4.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox