2016-02-08 04:02:49 -07:00
|
|
|
PREFIX ?= /usr
|
2016-01-30 03:18:30 -07:00
|
|
|
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:
|
2016-02-08 04:02:49 -07:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/fetch/ascii/distro
|
|
|
|
$(INSTALL_PROG) fetch $(DESTDIR)$(PREFIX)/bin/fetch
|
|
|
|
$(INSTALL_PROG) config/config $(DESTDIR)$(PREFIX)/share/fetch/config
|
|
|
|
$(INSTALL_PROG) ascii/distro/* $(DESTDIR)$(PREFIX)/share/fetch/ascii/distro
|
2016-01-30 03:18:30 -07:00
|
|
|
|
|
|
|
uninstall:
|
2016-02-08 04:02:49 -07:00
|
|
|
$(RM) $(DESTDIR)$(PREFIX)/bin/fetch
|
|
|
|
$(RM) -r $(DESTDIR)$(PREFIX)/share/fetch
|
2016-01-30 03:18:30 -07:00
|
|
|
|
|
|
|
|