lyr/makefile

16 lines
325 B
Makefile

SRCDIR = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
PREFIX ?= /usr
DESTDIR ?= $(PREFIX)/bin
LYRREPO ?= $(PREFIX)/var/lyr
LYRROOT ?= $(PREFIX)/share/lyr
install:
mkdir -p $(LYRREPO)
ln -sf $(SRCDIR) $(LYRROOT)
ln -sf $(LYRROOT)/lyr.sh $(DESTDIR)/lyr
uninstall:
rm $(DESTDIR)/lyr
rm $(LYRROOT)
rm -fr $(LYRREPO)