2021-11-18 15:53:33 -08:00
|
|
|
PREFIX := /usr
|
2021-10-31 13:24:41 -07:00
|
|
|
|
|
|
|
all: install
|
|
|
|
|
2022-01-02 23:56:25 -08:00
|
|
|
install: uninstall
|
2022-02-04 22:54:16 -08:00
|
|
|
install -m0755 ani-cli $(DESTDIR)$(PREFIX)/bin/ani-cli
|
|
|
|
install -m0755 aniwrapper $(DESTDIR)$(PREFIX)/bin/aniwrapper
|
|
|
|
mkdir -p /usr/local/man/man1
|
|
|
|
install -m0644 docs/man/aniwrapper.1 /usr/local/man/man1/
|
|
|
|
gzip -qf /usr/local/man/man1/aniwrapper.1
|
|
|
|
mandb -q
|
2021-10-31 13:24:41 -07:00
|
|
|
|
2022-01-02 23:56:25 -08:00
|
|
|
dev: uninstall
|
|
|
|
ln -sr ./ani-cli $(DESTDIR)$(PREFIX)/bin/ani-cli
|
|
|
|
ln -sr ./aniwrapper $(DESTDIR)$(PREFIX)/bin/aniwrapper
|
2021-10-31 13:24:41 -07:00
|
|
|
|
|
|
|
uninstall:
|
2022-01-02 23:56:25 -08:00
|
|
|
ifneq ("$(wildcard $(DESTDIR)$(PREFIX)/bin/ani-cli)","")
|
2021-10-31 13:24:41 -07:00
|
|
|
$(RM) $(DESTDIR)$(PREFIX)/bin/ani-cli
|
2022-01-02 23:56:25 -08:00
|
|
|
endif
|
|
|
|
ifneq ("$(wildcard $(DESTDIR)$(PREFIX)/bin/aniwrapper)","")
|
2021-10-31 13:24:41 -07:00
|
|
|
$(RM) $(DESTDIR)$(PREFIX)/bin/aniwrapper
|
2022-01-02 23:56:25 -08:00
|
|
|
endif
|
2021-10-31 13:24:41 -07:00
|
|
|
|
2022-01-29 01:19:27 -08:00
|
|
|
.PHONY: all install uninstall dev
|