INSTALL_DIR := /usr/lib
CURR_DIR := $(shell pwd)
LIBS ?= $(wildcard $(CURR_DIR)/mx-*-lib)

.PHONY: $(LIBS) clean

all: install

install: $(LIBS)

$(LIBS):
	@echo "Install $(notdir $@) to $(INSTALL_DIR)"
	@install -m 755 $@ $(INSTALL_DIR)

clean:
	@rm -f $(addprefix $(INSTALL_DIR)/, $(notdir $(LIBS)))