1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
ifdef @$(EMACSBIN)
EMACSBIN = @$(EMACSBIN)
else
EMACSBIN = $(shell if [ -z "`which emacs`" ]; then echo "Emacs executable not found"; exit 1; else echo emacs; fi)
endif
BATCHEMACS = $(EMACSBIN) --batch --no-site-file -q -eval '(progn (add-to-list (quote load-path) "${PWD}/") (package-initialize))'
BYTECOMP = $(BATCHEMACS) -eval '(progn (require (quote bytecomp)) (setq byte-compile-warnings t) (setq byte-compile-error-on-warn t))' -f batch-byte-compile
default:
@echo Try \'make help\'
help:
@echo "Targets: clean, compile, deps, doc, test, test-racket, test-elisp"
show-versions:
racket --version
echo `which $(EMACSBIN)`
$(EMACSBIN) --version
clean:
-rm *.elc
%.elc : %.el
$(BYTECOMP) $<
compile: clean \
show-versions\
racket-bug-report.elc \
racket-common.elc \
racket-collection.elc \
racket-complete.elc \
racket-debug.elc \
racket-edit.elc \
racket-font-lock.elc \
racket-imenu.elc \
racket-indent.elc \
racket-keywords-and-builtins.elc \
racket-logger.elc \
racket-make-doc.elc \
racket-mode.elc \
racket-ppss.elc \
racket-profile.elc \
racket-repl.elc \
racket-stepper.elc \
racket-tests.elc \
racket-unicode-input-method.elc \
racket-util.elc
# Install packages we depend on. Intended for one-time use by
# developers and for Travis CI. (Normal users of the package get these
# deps automatically as a result of our Package-Requires in
# racket-mode.el)
deps:
$(BATCHEMACS) -eval '(progn (add-to-list (quote package-archives) (cons "melpa" "http://melpa.org/packages/")) (package-initialize) (package-refresh-contents) (package-install (quote faceup)) (package-install (quote s)))'
doc:
$(BATCHEMACS) -l racket-make-doc.el -f racket-make-doc/write-reference-file
test: test-racket test-elisp
test-racket:
raco test ./racket/test/
raco test -x ./racket/*.rkt
raco test -x ./racket/commands/*.rkt
test-elisp:
$(BATCHEMACS) -l ert -l racket-tests.el -f ert-run-tests-batch-and-exit
|