branch: elpa/forth-mode
commit efa1f0a336317682072c4a9be604730caa99bef9
Author: Lars Brinkhoff <[email protected]>
Commit: Lars Brinkhoff <[email protected]>

    Build Emacs Lisp files.
---
 .gitignore | 1 +
 Makefile   | 5 +++++
 build.el   | 6 ++++++
 3 files changed, 12 insertions(+)

diff --git a/.gitignore b/.gitignore
index 6302bc32b6..10442e336b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 *~
 *.elc
+autoloads.el
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000..9b6a9c77f2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+all:
+       emacs -q --no-site-file --batch --load build.el
+
+clean:
+       rm -f autoloads.el *.elc
diff --git a/build.el b/build.el
new file mode 100644
index 0000000000..15976d9d9e
--- /dev/null
+++ b/build.el
@@ -0,0 +1,6 @@
+(let ((generated-autoload-file (concat default-directory "autoloads.el")))
+  (update-directory-autoloads "."))
+(load-file "autoloads.el")
+(add-to-list 'load-path ".")
+(let ((result (byte-recompile-directory "." 0)))
+  (kill-emacs (if (string-match "failed" result) 1 0)))

Reply via email to