ghc-mod/elisp/Makefile

19 lines
559 B
Makefile
Raw Normal View History

2010-11-15 03:46:55 +00:00
SRCS = ghc.el ghc-func.el ghc-doc.el ghc-comp.el ghc-flymake.el \
2011-12-27 07:28:02 +00:00
ghc-command.el ghc-info.el ghc-ins-mod.el
2010-01-07 01:50:54 +00:00
EMACS = emacs
2010-01-06 05:38:06 +00:00
TEMPFILE = temp.el
all: $(TEMPFILE) ghc.el
2010-01-07 01:50:54 +00:00
$(EMACS) -batch -q -no-site-file -l ./$(TEMPFILE) -f ghc-compile
2010-05-12 00:56:09 +00:00
rm -f $(TEMPFILE)
2010-01-06 05:38:06 +00:00
$(TEMPFILE):
@echo '(setq load-path (cons "." load-path))' >> $(TEMPFILE)
@echo '(defun ghc-compile () (mapcar (lambda (x) (byte-compile-file x)) (list ' >> $(TEMPFILE)
@echo $(SRCS)| sed -e 's/\(ghc[^ ]*\.el\)/"\1"/g' >> $(TEMPFILE)
@echo ')))' >> $(TEMPFILE)
clean:
rm -f *.elc $(TEMPFILE)