branch: externals/wisi commit 6eb5e05ae66cbb0e9b0ab484938d0a23a0be4f6b Author: Stephen Leake <stephen_le...@stephe-leake.org> Commit: Stephen Leake <stephen_le...@stephe-leake.org>
* .gitignore: Ignore autoloads.el * ELPA.make: New file. --- .gitignore | 1 + ELPA.make | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.gitignore b/.gitignore index 12798c6e35..cd54022dbd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ obj/ wisi.gpr wisitoken-user_guide.info wisitoken-bnf-generate.exe +autoloads.el diff --git a/ELPA.make b/ELPA.make new file mode 100644 index 0000000000..27829eef96 --- /dev/null +++ b/ELPA.make @@ -0,0 +1,31 @@ +# For compiling in elpa + +.PHONY : all force + +all : byte-compile autoloads + +ifeq ($(shell uname),Linux) +EMACS_EXE ?= emacs + +else ifeq ($(shell uname),Darwin) +EMACS_EXE ?= "/Applications/Emacs.app/Contents/MacOS/Emacs" + +else +# windows +# specify uniscribe to workaround weird Windows harfbuzz bug +EMACS_EXE ?= emacs -xrm Emacs.fontBackend:uniscribe + +endif + +BYTE_COMPILE := "(progn (setq byte-compile-error-on-warn t)(batch-byte-compile))" +byte-compile : byte-compile-clean + $(EMACS_EXE) -Q -batch -L . --eval $(BYTE_COMPILE) *.el + +byte-compile-clean : + rm -f *.elc + +autoloads : force + $(EMACS_EXE) -Q -batch --eval "(progn (setq generated-autoload-file (expand-file-name \"autoloads.el\"))(update-directory-autoloads \".\"))" + + +# end of file