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
|
2021-10-31 13:24:41 -07:00
|
|
|
cp ani-cli $(DESTDIR)$(PREFIX)/bin/ani-cli
|
|
|
|
cp aniwrapper $(DESTDIR)$(PREFIX)/bin/aniwrapper
|
|
|
|
chmod 0755 $(DESTDIR)$(PREFIX)/bin/ani-cli
|
|
|
|
chmod 0755 $(DESTDIR)$(PREFIX)/bin/aniwrapper
|
|
|
|
|
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-02 23:56:25 -08:00
|
|
|
reinstall: uninstall install
|
2021-12-30 11:57:53 -08:00
|
|
|
|
|
|
|
.PHONY: all install uninstall dev reinstall
|
2021-10-31 13:24:41 -07:00
|
|
|
|