aniwrapper/Makefile

26 lines
688 B
Makefile
Raw Permalink Normal View History

2021-11-18 15:53:33 -08:00
PREFIX := /usr
all: install
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
dev: uninstall
ln -sr ./ani-cli $(DESTDIR)$(PREFIX)/bin/ani-cli
ln -sr ./aniwrapper $(DESTDIR)$(PREFIX)/bin/aniwrapper
uninstall:
ifneq ("$(wildcard $(DESTDIR)$(PREFIX)/bin/ani-cli)","")
$(RM) $(DESTDIR)$(PREFIX)/bin/ani-cli
endif
ifneq ("$(wildcard $(DESTDIR)$(PREFIX)/bin/aniwrapper)","")
$(RM) $(DESTDIR)$(PREFIX)/bin/aniwrapper
endif
2022-01-29 01:19:27 -08:00
.PHONY: all install uninstall dev