ida-bot/Makefile

33 lines
659 B
Makefile

LISPS = ros sbcl clisp cmucl ccl
CMDS = --eval "(ql:quickload :ida-bot)" --eval "(asdf:make :ida-bot)" --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
.PHONY: clean all extensions
all: ida-bot
ida-bot:
$(LISP) $(CMDS)
clean:
rm -rf bin/
extensions:
mkdir -p bin/extensions
cp commands/* bin/extensions/
cp services/* bin/extensions/
cp handlers/* bin/extensions/