Permalink
Browse files

Files to build.

  • Loading branch information...
1 parent 84a8993 commit 2a4f6935509cbe744ba6197cf96f9fbfc7ce4297 @tarao committed Oct 19, 2012
Showing with 85 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +18 −0 .gitmodules
  3. +52 −0 Makefile
  4. +1 −0 lib/anything-config
  5. +1 −0 lib/evil
  6. +1 −0 lib/key-intercept
  7. +1 −0 lib/multi-mode
  8. +1 −0 lib/multi-mode-util
  9. +7 −0 lib/subdirs.el
  10. +1 −0 lib/tab-group-el
View
@@ -0,0 +1,2 @@
+*.elc
+.depend
View
@@ -0,0 +1,18 @@
+[submodule "lib/tab-group-el"]
+ path = lib/tab-group-el
+ url = git://github.com/tarao/tab-group-el.git
+[submodule "lib/key-intercept"]
+ path = lib/key-intercept
+ url = git://github.com/tarao/key-intercept-el.git
+[submodule "lib/multi-mode-util"]
+ path = lib/multi-mode-util
+ url = git://github.com/tarao/multi-mode-util.git
+[submodule "lib/multi-mode"]
+ path = lib/multi-mode
+ url = git://github.com/emacsmirror/multi-mode.git
+[submodule "lib/evil"]
+ path = lib/evil
+ url = git://gitorious.org/evil/evil.git
+[submodule "lib/anything-config"]
+ path = lib/anything-config
+ url = git://repo.or.cz/anything-config.git
View
@@ -0,0 +1,52 @@
+SHELL = /bin/sh
+EMACS = emacs
+FILES = $(wildcard *.el)
+PROFILER =
+LIB = lib
+LIBS = -L "$(LIB)" -L lib/anything-config/extensions -l subdirs.el
+
+ELCFILES = $(FILES:.el=.elc)
+
+.PHONY: all compile compile-batch clean emacs term terminal
+
+all: compile
+compile: $(ELCFILES)
+
+.depend: $(FILES)
+ @echo Compute dependencies
+ @rm -f .depend
+ @for f in $(FILES); do \
+ sed -n "s/^.*(require '\(term+[^ )]*\)).*$$/$${f}c: \1.elc/p" $$f >> .depend;\
+ done
+
+-include .depend
+
+$(ELCFILES): %.elc: %.el
+ $(EMACS) --batch -Q -L . $(LIBS) \
+--eval "(add-subdirs-to-load-path \"$(LIB)\")" \
+-f batch-byte-compile $<
+
+clean:
+ rm -f *~
+ rm -f \#*\#
+ rm -f *.elc
+ rm -f .depend
+
+emacs:
+ $(EMACS) -Q -L . $(LIBS) \
+--eval "(add-subdirs-to-load-path \"$(LIB)\")" \
+--eval "(require 'term+mux)" \
+--eval "(require 'xterm-256color)" \
+--eval "(require 'key-intercept)" \
+--eval "(require 'multi-mode-util)" \
+--eval "(term+mux-new)" &
+
+term: terminal
+terminal:
+ $(EMACS) -nw -Q -L . $(LIBS) \
+--eval "(add-subdirs-to-load-path \"$(LIB)\")" \
+--eval "(require 'term+mux)" \
+--eval "(require 'xterm-256color)" \
+--eval "(require 'key-intercept)" \
+--eval "(require 'multi-mode-util)" \
+--eval "(term+mux-new)"
Submodule anything-config added at d04b14
Submodule evil added at ebd97a
Submodule key-intercept added at 24376b
Submodule multi-mode added at b56b85
Submodule multi-mode-util added at 187aac
View
@@ -0,0 +1,7 @@
+(defun add-subdirs-to-load-path (dir)
+ (when (fboundp 'normal-top-level-add-subdirs-to-load-path)
+ (let* ((dir (expand-file-name dir))
+ (default-directory (expand-file-name dir)))
+ (when (file-directory-p dir)
+ (setq load-path (cons dir load-path))
+ (normal-top-level-add-subdirs-to-load-path)))))
Submodule tab-group-el added at bbad07

0 comments on commit 2a4f693

Please sign in to comment.