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

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

[nongnu] elpa/tuareg 38c68bcdb7 1/4: Generate tuareg.install


From: ELPA Syncer
Subject: [nongnu] elpa/tuareg 38c68bcdb7 1/4: Generate tuareg.install
Date: Thu, 29 Sep 2022 09:59:55 -0400 (EDT)

branch: elpa/tuareg
commit 38c68bcdb7ec389aa10b217e0875c77a25bb46a4
Author: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Commit: Christophe Troestler <Christophe.Troestler@umons.ac.be>

    Generate tuareg.install
    
    This prevents it from desynchronizing from the Makefile which manages
    the compilation of Emacs Lisp files.
    
    Fixes https://github.com/ocaml/tuareg/issues/281
---
 .gitignore     |  1 +
 Makefile       |  8 ++++++++
 tuareg.install | 12 ------------
 3 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/.gitignore b/.gitignore
index 574cb42dac..19b3094552 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ packages
 /tuareg.*/
 ChangeLog
 tuareg-site-file.el
+tuareg.install
diff --git a/Makefile b/Makefile
index 0ba4cb2fc7..c17fd0f7c8 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,14 @@ tuareg-site-file.el: $(SOURCES)
         echo "") >$@
        $(EMACS) --batch --eval '(if (>= emacs-major-version 28) 
(make-directory-autoloads "." "'`pwd`'/$@") (setq generated-autoload-file 
"'`pwd`'/$@") (batch-update-autoloads))' "."
 
+tuareg.install:
+       echo "share_root: [" > $@
+       for f in $(ELS); do \
+         echo "  \"$$f\" {\"emacs/site-lisp/$$f\"}" >> $@; \
+         echo "  \"?$${f}c\" {\"emacs/site-lisp/$${f}c\"}" >> $@; \
+       done
+       echo "]" >> $@
+
 dist distrib: $(TARBALL)
 
 $(TARBALL): $(DIST_FILES)
diff --git a/tuareg.install b/tuareg.install
deleted file mode 100644
index cfe6a7f42c..0000000000
--- a/tuareg.install
+++ /dev/null
@@ -1,12 +0,0 @@
-share_root: [
-  "tuareg.el" {"emacs/site-lisp/tuareg.el"}
-  "ocamldebug.el" {"emacs/site-lisp/ocamldebug.el"}
-  "tuareg-site-file.el" {"emacs/site-lisp/tuareg-site-file.el"}
-  "tuareg-menhir.el" {"emacs/site-lisp/tuareg-menhir.el"}
-  "tuareg-opam.el" {"emacs/site-lisp/tuareg-opam.el"}
-  "?tuareg.elc" {"emacs/site-lisp/tuareg.elc"}
-  "?ocamldebug.elc" {"emacs/site-lisp/ocamldebug.elc"}
-  "?tuareg-site-file.elc" {"emacs/site-lisp/tuareg-site-file.elc"}
-  "?tuareg-menhir.elc" {"emacs/site-lisp/tuareg-menhir.elc"}
-  "?tuareg-opam.elc" {"emacs/site-lisp/tuareg-opam.elc"}
-]



reply via email to

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