all: sleigh-build

-include ../config.mk
include deps.mk

DD=$(DESTDIR)/$(R2_LIBR_PLUGINS)/r2ghidra_sleigh
DH=$(DESTDIR)/$(R2_USER_PLUGINS)/r2ghidra_sleigh
D?=$(DH)

install:
	$(MAKE) sleigh-install D="$(DD)"

user-install:
	$(MAKE) sleigh-install D="$(DH)"

user-uninstall:
	$(MAKE) sleigh-uninstall D="$(DH)"

clean:
	@echo clean

uninstall:
	$(MAKE) sleigh-uninstall D="$(DD)"

.PHONY: install uninstall user-install user-uninstall all
