remote-rename/Makefile

20 lines
471 B
Makefile

LISPS = ros sbcl clisp cmucl ccl
CMDS = --eval "(ql:quickload :remote-rename)" --eval "(asdf:make :remote-rename)" --eval "(quit)"
ifeq ($(OS),Windows_NT)
LISP := $(foreach lisp,$(LISPS), \
$(shell where $(lisp)) \
$(if $(.SHELLSTATUS),$(strip $(lisp)),))
else
LISP := $(foreach lisp,$(LISPS), \
$(if $(findstring $(lisp),"$(shell which $(lisp) 2>/dev/null)"), $(strip $(lisp)),))
endif
ifeq ($(LISP),)
$(error "No lisps found")
endif
all:
$(LISP) $(CMDS)