Makefile: Use for the install of ascii art and default config
This commit is contained in:
parent
9d35c8e6d1
commit
0d78a6bdfe
2 changed files with 15 additions and 10 deletions
16
Makefile
16
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
PREFIX ?= usr
|
||||
PREFIX ?= /usr
|
||||
RM ?= rm -f
|
||||
INSTALL_DIR ?= install -m755 -d
|
||||
INSTALL_PROG ?= install -m755 -D
|
||||
|
|
@ -8,14 +8,14 @@ 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
|
||||
$(INSTALL_PROG) config/config $(DESTDIR)/usr/share/fetch/config
|
||||
$(INSTALL_PROG) ascii/distro/* $(DESTDIR)/usr/share/fetch/ascii/distro
|
||||
$(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
|
||||
|
||||
uninstall:
|
||||
$(RM) $(DESTDIR)/$(PREFIX)/bin/fetch
|
||||
$(RM) -r $(DESTDIR)/usr/share/fetch
|
||||
$(RM) $(DESTDIR)$(PREFIX)/bin/fetch
|
||||
$(RM) -r $(DESTDIR)$(PREFIX)/share/fetch
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue