2021-08-05 01:15:12 -06:00
|
|
|
PREFIX = /usr
|
|
|
|
MANDIR = $(PREFIX)/share/man
|
2018-05-04 03:52:08 -06:00
|
|
|
|
2023-08-23 02:38:39 -06:00
|
|
|
all: build
|
2023-08-23 00:47:53 -06:00
|
|
|
|
|
|
|
build:
|
|
|
|
python setup.py build
|
2018-05-04 03:52:08 -06:00
|
|
|
|
|
|
|
install:
|
2023-08-23 00:47:53 -06:00
|
|
|
python setup.py install --prefix=${PREFIX}
|
|
|
|
|
|
|
|
install-doc:
|
|
|
|
@mkdir -p $(DESTDIR)$(MANDIR)/man1
|
|
|
|
@cp -p docs/hyfetch.1 $(DESTDIR)$(MANDIR)/man1
|
2023-08-23 00:55:49 -06:00
|
|
|
@cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1/neowofetch.1
|
2023-08-23 00:47:53 -06:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@rm -rf $(DESTDIR)$(PREFIX)/bin/hyfetch
|
|
|
|
@rm -rf $(DESTDIR)$(PREFIX)/bin/neowofetch
|
|
|
|
@rm -rf $(DESTDIR)$(MANDIR)/man1/hyfetch.1*
|
|
|
|
@rm -rf $(DESTDIR)$(MANDIR)/man1/neowofetch.1*
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build/ HyFetch.egg-info
|
|
|
|
|
|
|
|
install-neofetch:
|
2018-05-04 03:52:08 -06:00
|
|
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
@mkdir -p $(DESTDIR)$(MANDIR)/man1
|
|
|
|
@cp -p neofetch $(DESTDIR)$(PREFIX)/bin/neofetch
|
2023-08-23 00:47:53 -06:00
|
|
|
@cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1
|
2018-05-04 03:52:08 -06:00
|
|
|
@chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch
|
|
|
|
|
2023-08-23 00:47:53 -06:00
|
|
|
uninstall-neofetch:
|
2018-05-04 03:52:08 -06:00
|
|
|
@rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch
|
|
|
|
@rm -rf $(DESTDIR)$(MANDIR)/man1/neofetch.1*
|