diff --git a/.gitignore b/.gitignore index 574cb42d..19b30945 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 0ba4cb2f..c17fd0f7 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 cfe6a7f4..00000000 --- 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"} -]