clauncher/Makefile

30 lines
786 B
Makefile

DESTDIR = /usr/local/bin
INSTALL_PATH = $(DESTDIR)/clauncher
HELPER_PATH = $(DESTDIR)/capture.zsh
all: install
install: $(INSTALL_PATH) $(HELPER_PATH)
$(INSTALL_PATH): clauncher
@echo "Installing clauncher to $(DESTDIR)"
@install -m 755 $< $(DESTDIR)
$(HELPER_PATH): capture.zsh
@echo "Installing capture.zsh to $(DESTDIR)"
@install -m 755 $< $(DESTDIR)
uninstall:
@echo "Removing clauncher from $(DESTDIR)"
@rm -f $(INSTALL_PATH)
@echo "Removing capture.zsh from $(DESTDIR)"
@rm -f $(HELPER_PATH)
help:
@echo "Available targets:"
@echo " make install - Install clauncher and capture.zsh to $(DESTDIR)"
@echo " make uninstall - Remove clauncher and capture.zsh from $(DESTDIR)"
@echo " make help - Show this help message"
.PHONY: all install uninstall help