Skip to content

Commit 38c68bc

Browse files
committed
Generate tuareg.install
This prevents it from desynchronizing from the Makefile which manages the compilation of Emacs Lisp files. Fixes #281
1 parent 9447a6a commit 38c68bc

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ packages
88
/tuareg.*/
99
ChangeLog
1010
tuareg-site-file.el
11+
tuareg.install

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ tuareg-site-file.el: $(SOURCES)
8989
echo " ") >$@
9090
$(EMACS) --batch --eval '(if (>= emacs-major-version 28) (make-directory-autoloads "." "'`pwd`'/$@") (setq generated-autoload-file "'`pwd`'/$@") (batch-update-autoloads))' "."
9191

92+
tuareg.install:
93+
echo "share_root: [" > $@
94+
for f in $(ELS); do \
95+
echo " \"$$f\" {\"emacs/site-lisp/$$f\"}" >> $@; \
96+
echo " \"?$${f}c\" {\"emacs/site-lisp/$${f}c\"}" >> $@; \
97+
done
98+
echo "]" >> $@
99+
92100
dist distrib: $(TARBALL)
93101

94102
$(TARBALL): $(DIST_FILES)

tuareg.install

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)