17 lines
458 B
Makefile
17 lines
458 B
Makefile
|
SRCS = ghc.el ghc-func.el ghc-doc.el ghc-comp.el
|
||
|
|
||
|
TEMPFILE = temp.el
|
||
|
|
||
|
all: $(TEMPFILE) ghc.el
|
||
|
emacs -batch -q -no-site-file -l ./$(TEMPFILE) -f ghc-compile
|
||
|
|
||
|
$(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)
|
||
|
|