Update Makefile
This commit is contained in:
parent
de2d8c8016
commit
93b2dcd399
12
Makefile
12
Makefile
|
@ -1,22 +1,22 @@
|
|||
DESTDIR = /usr/local/bin
|
||||
INSTALL_PATH = $(DESTDIR)/launcher.sh
|
||||
INSTALL_PATH = $(DESTDIR)/clauncher
|
||||
|
||||
all: install
|
||||
|
||||
install: $(INSTALL_PATH)
|
||||
|
||||
$(INSTALL_PATH): launcher.sh
|
||||
@echo "Installing launcher.sh to $(DESTDIR)"
|
||||
$(INSTALL_PATH): clauncher
|
||||
@echo "Installing clauncher to $(DESTDIR)"
|
||||
@install -m 755 $< $(DESTDIR)
|
||||
|
||||
uninstall:
|
||||
@echo "Removing launcher.sh from $(DESTDIR)"
|
||||
@echo "Removing clauncher from $(DESTDIR)"
|
||||
@rm -f $(INSTALL_PATH)
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " make install - Install launcher.sh to $(DESTDIR)"
|
||||
@echo " make uninstall - Remove launcher.sh from $(DESTDIR)"
|
||||
@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
|
||||
|
|
Loading…
Reference in New Issue