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

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

[elpa] 12/119: compiling to .elc


From: Eric Schulte
Subject: [elpa] 12/119: compiling to .elc
Date: Mon, 10 Mar 2014 16:57:01 +0000

eschulte pushed a commit to branch master
in repository elpa.

commit 55cf8ef4dfc6f690bc6ffda06e2ce6b3a8ed545b
Author: Eric Schulte <address@hidden>
Date:   Wed Dec 18 14:23:33 2013 -0700

    compiling to .elc
---
 .gitignore          |    1 +
 Makefile            |   13 +++++++++++++
 emacs-web-server.el |    1 +
 3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c531d98
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.elc
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0520044
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+EMACS := emacs
+BATCH=$(EMACS) --batch --execute '(add-to-list (quote load-path) "$(shell 
pwd)")'
+
+SRC=$(wildcard *.el)
+ELC=$(SRC:.el=.elc)
+
+all: src
+
+src: $(SRC)
+       $(BATCH) -f batch-byte-compile $^
+
+clean:
+       rm -f $(ELC)
diff --git a/emacs-web-server.el b/emacs-web-server.el
index 46ae4b8..dbeaf01 100644
--- a/emacs-web-server.el
+++ b/emacs-web-server.el
@@ -10,6 +10,7 @@
 (require 'emacs-web-server-status-codes)
 (require 'mail-parse)
 (require 'eieio)
+(eval-when-compile (require 'cl))
 (require 'cl-lib)
 
 (defclass ews-server ()



reply via email to

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