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

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

[elpa] 01/03: * GNUmakefile: Fix generation of <pkg>-pkg.el files. (pkg_


From: Stefan Monnier
Subject: [elpa] 01/03: * GNUmakefile: Fix generation of <pkg>-pkg.el files. (pkg_descs): New var. (all-in-place): Use it.
Date: Fri, 10 Oct 2014 18:25:35 +0000

monnier pushed a commit to branch master
in repository elpa.

commit 3f8fbc2bc260391895cec8e0c530fd42acf509a6
Author: Stefan Monnier <address@hidden>
Date:   Fri Oct 10 14:03:03 2014 -0400

    * GNUmakefile: Fix generation of <pkg>-pkg.el files.
    (pkg_descs): New var.
    (all-in-place): Use it.
---
 GNUmakefile |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index ec3dc25..25be098 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -145,21 +145,19 @@ $(extra_elcs):; rm $@
 
 # # Put into single_pkgs the set of -pkg.el files we need to keep up-to-date.
 # # I.e. all the -pkg.el files for the single-file packages.
-# single_pkgs:=$(foreach pkg, $(pkgs), \
-#                $(word $(words $(call FILTER-nonsrc, \
-#                                      $(wildcard $(pkg)/*.el))), \
-#                   $(pkg)/$(notdir $(pkg))-pkg.el))
-# #$(foreach al, $(single_pkgs), $(eval $(call RULE-srcdeps, $(al))))
-# %-pkg.el: %.el
-#      @echo 'Generating description file $@'
-#      @$(EMACS) \
-#          --eval '(require (quote package))' \
-#          --eval '(setq b (find-file-noselect "$<"))' \
-#          --eval '(setq d (with-current-buffer b (package-buffer-info)))' \
-#          --eval '(package-generate-description-file d "$(dir $@)")'
+pkg_descs:=$(foreach pkg, $(pkgs), $(pkg)/$(notdir $(pkg))-pkg.el)
+#$(foreach al, $(single_pkgs), $(eval $(call RULE-srcdeps, $(al))))
+%-pkg.el: %.el
+       @echo 'Generating description file $@'
+       $(EMACS) \
+           --eval '(require (quote package))' \
+           --eval '(setq b (find-file-noselect "$<"))' \
+           --eval '(setq d (with-current-buffer b (package-buffer-info)))' \
+           --eval '(package-generate-description-file d "$@")'
 
 .PHONY: all-in-place
-all-in-place: $(extra_elcs) $(autoloads) # $(single_pkgs)
+all-in-place: $(extra_elcs) $(autoloads) $(pkg_descs)
+       echo Descs = $(pkg_descs)
        # Do them in a sub-make, so that autoloads are done first.
        $(MAKE) elcs
 



reply via email to

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