This commit is contained in:
Kazu Yamamoto 2012-02-13 10:49:23 +09:00
parent cd1f61d6a5
commit 23f4365150

View File

@ -1,6 +1,7 @@
SRCS = ghc.el ghc-func.el ghc-doc.el ghc-comp.el ghc-flymake.el \
ghc-command.el ghc-info.el ghc-ins-mod.el
EMACS = emacs
DETECT = xemacs
TEMPFILE = temp.el
@ -8,6 +9,10 @@ all: $(TEMPFILE) ghc.el
$(EMACS) -batch -q -no-site-file -l ./$(TEMPFILE) -f ghc-compile
rm -f $(TEMPFILE)
detect: $(TEMPFILE) ghc.el
$(EMACS) -batch -q -no-site-file -l ./$(TEMPFILE) -f ghc-compile
rm -f $(DETECT)
$(TEMPFILE):
@echo '(setq load-path (cons "." load-path))' >> $(TEMPFILE)
@echo '(defun ghc-compile () (mapcar (lambda (x) (byte-compile-file x)) (list ' >> $(TEMPFILE)