INSTALL_DIR := /usr/sbin
CURR_DIR := $(shell pwd)
TOOLS := $(wildcard $(CURR_DIR)/mx-*)

.PHONY: install $(TOOLS) clean

all: install

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

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