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