hyfetch/Makefile

36 lines
873 B
Makefile
Raw Normal View History

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
build:
python setup.py build
2018-05-04 03:52:08 -06:00
install:
python setup.py install --prefix=${PREFIX}
install-doc:
@mkdir -p $(DESTDIR)$(MANDIR)/man1
@cp -p docs/hyfetch.1 $(DESTDIR)$(MANDIR)/man1
@cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1/neowofetch.1
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
@cp -p docs/neofetch.1 $(DESTDIR)$(MANDIR)/man1
2018-05-04 03:52:08 -06:00
@chmod 755 $(DESTDIR)$(PREFIX)/bin/neofetch
uninstall-neofetch:
2018-05-04 03:52:08 -06:00
@rm -rf $(DESTDIR)$(PREFIX)/bin/neofetch
@rm -rf $(DESTDIR)$(MANDIR)/man1/neofetch.1*