diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 124dcd0..5ef6fcd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ ALL=lr +ZSHCOMP=_lr CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings @@ -6,6 +7,7 @@ DESTDIR= PREFIX=/usr/local BINDIR=$(PREFIX)/bin MANDIR=$(PREFIX)/share/man +ZSHCOMPDIR=$(PREFIX)/share/zsh/site-functions all: $(ALL) @@ -13,8 +15,9 @@ clean: FRC rm -f lr install: FRC all - mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 + mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(ZSHCOMPDIR) install -m0755 $(ALL) $(DESTDIR)$(BINDIR) install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1 + install -m0644 $(ZSHCOMP) $(DESTDIR)$(ZSHCOMPDIR) FRC: |