2016-01-30 10:18:30 +00:00
|
|
|
PREFIX ?= usr
|
|
|
|
RM ?= rm -f
|
|
|
|
INSTALL_DIR ?= install -m755 -d
|
|
|
|
INSTALL_PROG ?= install -m755 -D
|
|
|
|
INSTALL_FILE ?= install -m644 -D
|
|
|
|
|
|
|
|
all:
|
|
|
|
@echo Run \'make install\' to install Fetch
|
|
|
|
|
|
|
|
install:
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/$(PREFIX)/bin
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/usr/share/fetch/ascii/distro
|
|
|
|
$(INSTALL_PROG) fetch $(DESTDIR)/$(PREFIX)/bin/fetch
|
2016-01-30 10:26:08 +00:00
|
|
|
$(INSTALL_PROG) config/config $(DESTDIR)/usr/share/fetch/config
|
2016-01-30 10:18:30 +00:00
|
|
|
$(INSTALL_PROG) ascii/distro/* $(DESTDIR)/usr/share/fetch/ascii/distro
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) $(DESTDIR)/$(PREFIX)/bin/fetch
|
|
|
|
$(RM) -r $(DESTDIR)/usr/share/fetch
|
|
|
|
|
|
|
|
|