emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 91b8a09: * GNUmakefile (RULE-singlepkg): New rule(s) to co


From: Stefan Monnier
Subject: [elpa] master 91b8a09: * GNUmakefile (RULE-singlepkg): New rule(s) to compile single-pkg (bug#38140)
Date: Sat, 28 Nov 2020 13:48:03 -0500 (EST)

branch: master
commit 91b8a093ae65be3a32bd88e57cd1a61a9174327a
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * GNUmakefile (RULE-singlepkg): New rule(s) to compile single-pkg 
(bug#38140)
---
 GNUmakefile | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/GNUmakefile b/GNUmakefile
index 2c02917..ed92c31 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -203,6 +203,18 @@ pkg_descs:=$(foreach pkg, $(pkgs), $(pkg)/$(notdir 
$(pkg))-pkg.el)
 # Use order-only prerequisites, so that autoloads are done first.
 all-in-place: | $(extra_elcs) $(autoloads) $(pkg_descs) elcs
 
+##### Compiling the files of just a single package
+
+# FIXME: This should be tuned so as to "git worktree add" the branch
+# if the $(1) directory doesn't exist yet!
+define RULE-singlepkg
+$(filter $(1)/%, $(elcs)): $1/$(notdir $(1))-pkg.el \
+                           $1/$(notdir $(1))-autoloads.el
+$(1): $(filter $(1)/%, $(elcs))
+endef
+$(foreach pkg, $(pkgs), $(eval $(call RULE-singlepkg, $(pkg))))
+
+
 
 ############### Rules to prepare the externals ################################
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]